public class IXSILException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.ResourceBundle |
exceptionMessages_
Contains the ResourceBundle for the exception messages.
|
protected java.lang.String |
messageId_
The exception message id.
|
protected java.lang.Throwable |
wrappedThrowable_
Wrapped Throwable.
|
protected static java.lang.String |
wrappingMessage_
String displayed between the stack trace print of wrapped Exceptions.
|
| Constructor and Description |
|---|
IXSILException()
Simple constructor with no arguments.
|
IXSILException(java.lang.String messageId)
Simple constructor with a message identifier argument.
|
IXSILException(java.lang.String messageId,
java.lang.Object[] messageParameters)
Constructor with a message identifier argument.
|
IXSILException(java.lang.String message,
java.lang.Object[] messageParameters,
java.lang.Throwable wrapped)
Constructor with a message identifier, message parameters and a wrapped Throwable as arguments.
|
IXSILException(java.lang.String messageId,
java.lang.Throwable wrapped)
Constructor with a message identifier and a wrapped
Throwable as arguments. |
IXSILException(java.lang.Throwable wrapped)
Constructor with a wrapped
Throwable as argument. |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
getExceptionMessage(java.lang.String messageId)
Looks up the exception message for a specified message id, provided by a
ResourceBundle. |
java.lang.String |
getMessageId()
Gets the message identifier for this exception.
|
static void |
init(java.lang.String languageCode,
java.lang.String countryCode)
Initializes the IXSIL exception handling.
|
void |
printStackTrace()
Prints the stack trace to
System.err. |
void |
printStackTrace(java.io.PrintStream ps)
Prints the stack trace to the specified
PrintStream. |
void |
printStackTrace(java.io.PrintWriter pw)
Prints the stack trace to the specified
PrintWriter. |
protected static java.util.ResourceBundle exceptionMessages_
protected static java.lang.String wrappingMessage_
protected java.lang.String messageId_
protected java.lang.Throwable wrappedThrowable_
public IXSILException()
Exception() constructor.public IXSILException(java.lang.Throwable wrapped)
Throwable as argument. The Throwable is used by
the printStackTrace methods.wrapped - The Throwable used by the printStackTrace methods.printStackTrace(),
printStackTrace(PrintStream),
printStackTrace(PrintWriter)public IXSILException(java.lang.String messageId)
Exception(String) constructor.messageId - the message identifier of the exception.public IXSILException(java.lang.String messageId,
java.lang.Throwable wrapped)
Throwable as arguments. Resolves the
message id into a human readable text message.messageId - The message identifier for the exception.wrapped - The Throwable used by the printStackTrace methods.IXSILException(String),
IXSILException(Throwable)public IXSILException(java.lang.String messageId,
java.lang.Object[] messageParameters)
MessageFormat meachanism is used to
incorporate the values of the given Object array into the resolved message.messageId - The message identifier for the exception.messageParameters - Paramters to be incorporated into the resolved message.IXSILException(String)public IXSILException(java.lang.String message,
java.lang.Object[] messageParameters,
java.lang.Throwable wrapped)
message - The message identifier for the exception.wrapped - The Throwable used by the printStackTrace methods.messageParameters - Paramters to be incorporated into the message.IXSILException(String, Object[]),
IXSILException(Throwable)public static void init(java.lang.String languageCode,
java.lang.String countryCode)
languageCode - The ISO language code for selecting the exception message resource bundle.countryCode - The ISO country code for selecting the exception message resource bundle.protected static java.lang.String getExceptionMessage(java.lang.String messageId)
ResourceBundle. This mechanism has been chosen to support internationalization.messageId - The exception message id, e. g. "Algorithm.01".public java.lang.String getMessageId()
public void printStackTrace()
System.err. If a wrapped Throwable has been
specified by the constructor, also the stack trace of this wrapped Throwable will be
printed.printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream ps)
PrintStream.printStackTrace in class java.lang.Throwableps - Specifies the destination for printing.printStackTrace()public void printStackTrace(java.io.PrintWriter pw)
PrintWriter.printStackTrace in class java.lang.Throwablepw - Specifies the destination for printing.printStackTrace()