com.ibm.wsgw
Class WSGWException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.wsgw.WSGWException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FilterException

public class WSGWException
extends java.lang.Exception

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.

Version:
1.20
Author:
 
See Also:
, Serialized Form

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

copyright

public static final java.lang.String copyright
Copyright string. Any code placed between the comments will be over written

nestedException

protected java.lang.Throwable nestedException
The exception which caused this exception to be thrown.

inserts

protected java.lang.Object[] inserts
The exception message inserts.

messageKey

protected java.lang.String messageKey
The exception message key.

severity

protected long severity
The exception message severity.

stackTrace

protected java.lang.String stackTrace
The stack trace.

We hold this here as it may be lost when serializing/deserializing this object across a module boundary.


nestedStackTrace

protected java.lang.String nestedStackTrace
The nested exception stack trace.

We hold this here as it may be lost when serializing/deserializing this object across a module boundary.

Constructor Detail

WSGWException

protected WSGWException(java.lang.String message)
Constructor.

For subclasses only.

Parameters:
message - The message.
See Also:

WSGWException

public WSGWException(long severity,
                     java.lang.String messageKey)
Constructor.
Parameters:
severity - The severity.
messageKey - The message key.
See Also:

WSGWException

public WSGWException(long severity,
                     java.lang.String messageKey,
                     java.lang.Throwable nested)
Constructor.
Parameters:
severity - The severity.
messageKey - The message key.
nested - The nested exception.
See Also:

WSGWException

public WSGWException(long severity,
                     java.lang.String messageKey,
                     java.lang.Object[] inserts)
Constructor.
Parameters:
severity - The severity.
messageKey - The message key.
inserts - The inserts.
See Also:

WSGWException

public WSGWException(long severity,
                     java.lang.String messageKey,
                     java.lang.Object[] inserts,
                     java.lang.Throwable nested)
Constructor.
Parameters:
severity - The severity.
messageKey - The message key.
inserts - The inserts.
nested - The nested exception.
See Also:
Method Detail

getNestedException

public java.lang.Throwable getNestedException()
Returns the exception which caused this exception to be thrown.
Parameters:
-  
Returns:
the nested exception (if any).
See Also:

getInserts

public java.lang.Object[] getInserts()
Returns the exception message inserts (if any).
Parameters:
-  
Returns:
The inserts (if any).
See Also:

getMessageKey

public java.lang.String getMessageKey()
Returns the exception message key.
Parameters:
-  
Returns:
The key.
See Also:

getSeverity

public long getSeverity()
Returns the exception message severity.
Parameters:
-  
Returns:
The severity.
See Also:

getMessage

public java.lang.String getMessage()
Returns the message.
Overrides:
getMessage in class java.lang.Throwable
Parameters:
-  
Returns:
The message.
See Also:

getStackTrace

public java.lang.String getStackTrace()
Returns the stack trace as a string.
Parameters:
-  
Returns:
The stack trace.
See Also:

getNestedStackTrace

public java.lang.String getNestedStackTrace()
Returns the nested exception's stack trace as a string (if any).
Parameters:
-  
Returns:
The stack trace or null.
See Also:

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Returns a localized copy of the message.
Overrides:
getLocalizedMessage in class java.lang.Throwable
Parameters:
-  
Returns:
The localized message.
See Also:

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale)
Returns a localized copy of the message.
Parameters:
locale - The locale
Returns:
The localized message.
See Also:

stackTraceToString

public java.lang.String stackTraceToString(java.lang.Throwable e)
Returns the stack trace as a string.
Parameters:
e - The exception.
Returns:
The stack trace.
See Also:


Copyright © 2002 IBM. All Rights Reserved.