openfuture.util.error
Class I18NException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--openfuture.util.error.I18NException
All Implemented Interfaces:
java.io.Serializable

public class I18NException
extends java.lang.Exception
implements java.io.Serializable

Exception containing the (internationalizable) description of the reason why this exception occured and the resulting situation. (After ideas from Bug Base).

Created: Wed Nov 01 17:03:53 2000

Version:
$Revision: 1.5 $
Author:
Wolfgang Reissenberger
See Also:
Serialized Form

Constructor Summary
I18NException(Message description)
          Create a new instance.
I18NException(Message description, I18NException exception)
          Derive a new instance from an existing one.
I18NException(Message description, Message[] reasons)
          Create a new instance.
 
Method Summary
 Message getDescription()
          Get the value of description.
 java.lang.String getMessage()
           
 java.lang.String getMessage(java.util.ResourceBundle bundle)
           
 Message[] getReasons()
          Get the value of reasons.
 void setDescription(Message v)
          Set the value of description.
 void setReasons(Message[] v)
          Set the value of reasons.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

I18NException

public I18NException(Message description)
Create a new instance.
Parameters:
description - Message describing the exception.
reasons - array of messages holding the reasons, why this exception occured.

I18NException

public I18NException(Message description,
                     Message[] reasons)
Create a new instance.
Parameters:
description - Message describing the exception.
reasons - array of messages holding the reasons, why this exception occured.

I18NException

public I18NException(Message description,
                     I18NException exception)
Derive a new instance from an existing one.
Parameters:
description - Message describing the exception.
exception - array of messages holding the reasons, why this exception occured. The description of exception is prepended to its reason messages and the result is the new set of reason messages.
Method Detail

getMessage

public java.lang.String getMessage(java.util.ResourceBundle bundle)

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getDescription

public Message getDescription()
Get the value of description.
Returns:
value of description.

setDescription

public void setDescription(Message v)
Set the value of description.
Parameters:
v - Value to assign to description.

getReasons

public Message[] getReasons()
Get the value of reasons.
Returns:
value of reasons.

setReasons

public void setReasons(Message[] v)
Set the value of reasons.
Parameters:
v - Value to assign to reasons.


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.