|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--com.ibm.wsgw.WSGWException
Defines the WSGWException class.
This exception class is used for all exceptions within the gateway. Note that these exceptions may be thrown across Interceptor or Channel interfaces and so should not contain untranslated text.
Field Summary | |
static java.lang.String |
copyright
Copyright string. |
protected java.lang.Object[] |
inserts
The exception message inserts. |
protected java.lang.String |
messageKey
The exception message key. |
protected java.lang.Throwable |
nestedException
The exception which caused this exception to be thrown. |
protected java.lang.String |
nestedStackTrace
The nested exception stack trace. |
protected long |
severity
The exception message severity. |
protected java.lang.String |
stackTrace
The stack trace. |
Constructor Summary | |
|
WSGWException(long severity,
java.lang.String messageKey)
Constructor. |
|
WSGWException(long severity,
java.lang.String messageKey,
java.lang.Object[] inserts)
Constructor. |
|
WSGWException(long severity,
java.lang.String messageKey,
java.lang.Object[] inserts,
java.lang.Throwable nested)
Constructor. |
|
WSGWException(long severity,
java.lang.String messageKey,
java.lang.Throwable nested)
Constructor. |
protected |
WSGWException(java.lang.String message)
Constructor. |
Method Summary | |
java.lang.Object[] |
getInserts()
Returns the exception message inserts (if any). |
java.lang.String |
getLocalizedMessage()
Returns a localized copy of the message. |
java.lang.String |
getLocalizedMessage(java.util.Locale locale)
Returns a localized copy of the message. |
java.lang.String |
getMessage()
Returns the message. |
java.lang.String |
getMessageKey()
Returns the exception message key. |
java.lang.Throwable |
getNestedException()
Returns the exception which caused this exception to be thrown. |
java.lang.String |
getNestedStackTrace()
Returns the nested exception's stack trace as a string (if any). |
long |
getSeverity()
Returns the exception message severity. |
java.lang.String |
getStackTrace()
Returns the stack trace as a string. |
java.lang.String |
stackTraceToString(java.lang.Throwable e)
Returns the stack trace as a string. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String copyright
protected java.lang.Throwable nestedException
protected java.lang.Object[] inserts
protected java.lang.String messageKey
protected long severity
protected java.lang.String stackTrace
We hold this here as it may be lost when serializing/deserializing this object across a module boundary.
protected java.lang.String nestedStackTrace
We hold this here as it may be lost when serializing/deserializing this object across a module boundary.
Constructor Detail |
protected WSGWException(java.lang.String message)
For subclasses only.
message
- The message.public WSGWException(long severity, java.lang.String messageKey)
severity
- The severity.messageKey
- The message key.public WSGWException(long severity, java.lang.String messageKey, java.lang.Throwable nested)
severity
- The severity.messageKey
- The message key.nested
- The nested exception.public WSGWException(long severity, java.lang.String messageKey, java.lang.Object[] inserts)
severity
- The severity.messageKey
- The message key.inserts
- The inserts.public WSGWException(long severity, java.lang.String messageKey, java.lang.Object[] inserts, java.lang.Throwable nested)
severity
- The severity.messageKey
- The message key.inserts
- The inserts.nested
- The nested exception.Method Detail |
public java.lang.Throwable getNestedException()
- public java.lang.Object[] getInserts()
- public java.lang.String getMessageKey()
- public long getSeverity()
- public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
- public java.lang.String getStackTrace()
- public java.lang.String getNestedStackTrace()
- public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
- public java.lang.String getLocalizedMessage(java.util.Locale locale)
locale
- The localepublic java.lang.String stackTraceToString(java.lang.Throwable e)
e
- The exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |