|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.ibm.tws.util.exception.TWSException
Base class for TWS exceptions.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright |
Constructor Summary | |
---|---|
TWSException(java.lang.String currentCatalog,
java.lang.String currentMessageID)
Creates a TWSException with the specified message |
|
TWSException(java.lang.String currentCatalog,
java.lang.String currentMessageID,
java.lang.Object[] currentArgs)
Creates a TWSException with the specified message and arguments |
|
TWSException(java.lang.String currentCatalog,
java.lang.String currentMessageID,
java.lang.Object[] currentArgs,
java.lang.Throwable cause)
Creates a TWSException with the specified message, arguments and root cause |
|
TWSException(java.lang.String currentCatalog,
java.lang.String currentMessageID,
java.lang.Throwable cause)
Creates a TWSException with the specified message and root cause |
|
TWSException(java.lang.Throwable cause)
Creates a TWSException with the specified root cause |
Method Summary | |
---|---|
protected java.lang.Object[] |
getArgs(java.util.Locale locale)
Returns the arguments to be used when formatting messages in the given locale. |
protected java.lang.String |
getCauseMessage(java.util.Locale locale)
Returns the message of the root cause, if any, and is called during message formatting. |
java.lang.String |
getLocalizedMessage()
Returns the default locale message string of this TWSException |
java.lang.String |
getLocalizedMessage(java.util.Locale locale)
Returns a localized message string of this TWSException |
java.lang.String |
getMessage()
Returns the english message string of this TWSException |
protected void |
initialize(java.lang.String currentCatalog,
java.lang.String currentMessageID,
java.lang.Object[] currentArgs,
java.lang.Throwable cause)
Initializes instance fields of this TWSException |
void |
printStackTrace()
Prints the stack trace to System.err |
void |
printStackTrace(java.io.PrintStream out)
Prints the stack trace to the specified PrintStream |
void |
printStackTrace(java.io.PrintWriter out)
Prints the stack trace to the specified PrintWriter |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, 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
Constructor Detail |
public TWSException(java.lang.Throwable cause)
cause
- The exception that has caused the problem (its message is added as the last argument)public TWSException(java.lang.String currentCatalog, java.lang.String currentMessageID)
currentCatalog
- The messages resource bundle namecurrentMessageID
- The message key in the resource bundlepublic TWSException(java.lang.String currentCatalog, java.lang.String currentMessageID, java.lang.Throwable cause)
currentCatalog
- The messages resource bundle namecurrentMessageID
- The message key in the resourcecause
- The exception that has caused the problem (its message is added as the last argument)public TWSException(java.lang.String currentCatalog, java.lang.String currentMessageID, java.lang.Object[] currentArgs)
currentCatalog
- The messages resource bundle namecurrentMessageID
- The message key in the resource bundlecurrentArgs
- The arguments of the messagepublic TWSException(java.lang.String currentCatalog, java.lang.String currentMessageID, java.lang.Object[] currentArgs, java.lang.Throwable cause)
currentCatalog
- The messages resource bundle namecurrentMessageID
- The message key in the resource bundlecurrentArgs
- The arguments of the messagecause
- The exception that has caused the problem (its message is added as the last argument)Method Detail |
public java.lang.String getMessage()
public java.lang.String getLocalizedMessage()
public java.lang.String getLocalizedMessage(java.util.Locale locale)
locale
- The locale to be used for the message
public void printStackTrace()
public void printStackTrace(java.io.PrintStream out)
out
- The output print stream to be usedpublic void printStackTrace(java.io.PrintWriter out)
out
- The output print writer to be usedprotected java.lang.Object[] getArgs(java.util.Locale locale)
locale
- The locale to be used for the message
protected java.lang.String getCauseMessage(java.util.Locale locale)
locale
- The locale to be used for the message
protected void initialize(java.lang.String currentCatalog, java.lang.String currentMessageID, java.lang.Object[] currentArgs, java.lang.Throwable cause)
currentCatalog
- The messages resource bundle namecurrentMessageID
- The message key in the resource bundlecurrentArgs
- The arguments of the messagecause
- The exception that has caused the problem (its message is added as the last argument)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |