public class XMLERuntimeException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
XMLERuntimeException()
Simple constructor with no arguments Invokes the
Exception() constructor. |
XMLERuntimeException(java.lang.String messageId)
Simple constructor with a message identifier argument.
|
XMLERuntimeException(java.lang.String messageId,
java.lang.Object[] messageParameters)
Constructor with a message identifier argument.
|
XMLERuntimeException(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. |
XMLERuntimeException(java.lang.String messageId,
java.lang.Throwable wrapped)
Constructor with a message identifier and a wrapped
Throwable as arguments. |
XMLERuntimeException(java.lang.Throwable wrapped)
Constructor with a wrapped
Throwable as argument. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessageId()
Retrieves the message identifier for this exception.
|
static void |
init(java.lang.String languageCode,
java.lang.String countryCode)
Initializes the XMLE runtime exception handling.
|
void |
printStackTrace()
Prints the stack trace of the
XMLERuntimeException to System.err. |
void |
printStackTrace(java.io.PrintStream ps)
Prints the stack trace of the
XMLERuntimeException to the specified
PrintStream. |
void |
printStackTrace(java.io.PrintWriter pw)
Prints the stack trace of the
XMLERuntimeException to the specified PrintWriter
. |
public XMLERuntimeException()
Exception() constructor.public XMLERuntimeException(java.lang.Throwable wrapped)
Throwable as argument.
The Throwable is used by the printStackTrace methods.
wrapped - the Throwable used by the printStackTrace methodsprintStackTrace()public XMLERuntimeException(java.lang.String messageId)
Resolves the message id into a text message and
invokes the Exception(String) constructor.
messageId - the message identifier for the exception.public XMLERuntimeException(java.lang.String messageId,
java.lang.Throwable wrapped)
Throwable as arguments.messageId - the message identifier for the exceptionwrapped - the Throwable used by the printStackTrace methodsXMLERuntimeException(String),
XMLERuntimeException(Throwable)public XMLERuntimeException(java.lang.String messageId,
java.lang.Object[] messageParameters)
The Java java.text.MessageFormat meachanism is used to incorporate the
values of the given Object array into the resolved message.
messageId - the message identifier for the exceptionmessageParameters - parameters to be incorporated into the resolved messageXMLERuntimeException(String)public XMLERuntimeException(java.lang.String message,
java.lang.Object[] messageParameters,
java.lang.Throwable wrapped)
Throwable
as arguments.message - the message identifier for the exceptionwrapped - the Throwable used by the printStackTrace methodsmessageParameters - parameters to be incorporated into the messageXMLERuntimeException(String, Object[]),
XMLERuntimeException(Throwable)public static void init(java.lang.String languageCode,
java.lang.String countryCode)
This method is used internally used by the main initialization class. If one of
the specified parameters equals null, the default exception
message resource bundle is opened.
languageCode - the ISO language code for selecting the exception message resource bundlecountryCode - The ISO country code for selecting the exception message resource bundlepublic java.lang.String getMessageId()
public void printStackTrace()
XMLERuntimeException to System.err.
If a wrapped Throwable has been specified by the constructor, the stack trace of this
wrapped Throwable will be printed.
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream ps)
XMLERuntimeException to the specified
PrintStream.printStackTrace in class java.lang.Throwableps - specifies the destination for printingprintStackTrace()public void printStackTrace(java.io.PrintWriter pw)
XMLERuntimeException to the specified PrintWriter
.printStackTrace in class java.lang.Throwablepw - specifies the destination for printingprintStackTrace()