public class XMLEException
extends java.lang.Exception
| Constructor and Description |
|---|
XMLEException()
Simple constructor with no arguments.
|
XMLEException(java.lang.String messageId)
Simple constructor with a message identifier argument.
|
XMLEException(java.lang.String messageId,
java.lang.Object[] messageParameters)
Constructor with a message identifier argument.
|
XMLEException(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.
|
XMLEException(java.lang.String messageId,
java.lang.Throwable wrapped)
Constructor with a message identifier and a wrapped Throwable as arguments.
|
XMLEException(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 key)
Looks up the Exception message for a given key 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 exception handling.
|
void |
printStackTrace()
Prints the stack trace of the
XMLEException to System.err. |
void |
printStackTrace(java.io.PrintStream ps)
Prints the stack trace of the
XMLEException to the specified PrintStream. |
void |
printStackTrace(java.io.PrintWriter pw)
Prints the stack trace of the
XMLEException to the specified PrintWriter. |
public XMLEException()
Exception() constructor.public XMLEException(java.lang.Throwable wrapped)
printStackTrace methods.wrapped - The Throwable used by the printStackTrace methods.public XMLEException(java.lang.String messageId)
Exception(String) constructor.messageId - the message identifier for the exception.public XMLEException(java.lang.String messageId,
java.lang.Throwable wrapped)
messageId - The message identifier for the exception.wrapped - The Throwable used by the printStackTrace methods.public XMLEException(java.lang.String messageId,
java.lang.Object[] messageParameters)
java.text.MessageFormat
mechanism 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.public XMLEException(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.public static void init(java.lang.String languageCode,
java.lang.String countryCode)
com.entrust.toolkit.xencrypt.init.XMLEInit
constructor). If they are not specified there, this method loads a resource bundle
for the default Locale, as determined at run time.languageCode - The ISO language code for the exception message resource bundle.countryCode - The ISO country code for the exception message resource bundle.XMLEExceptionMessages,
XMLEInitprotected static java.lang.String getExceptionMessage(java.lang.String key)
key - The key for the exception message value to be returned.public java.lang.String getMessageId()
public void printStackTrace()
XMLEException to 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)
XMLEException to the specified PrintStream.printStackTrace in class java.lang.Throwableps - Specifies the destination for printing.public void printStackTrace(java.io.PrintWriter pw)
XMLEException to the specified PrintWriter.printStackTrace in class java.lang.Throwablepw - Specifies the destination for printing.