com.ibm.websphere.product

Class WASDirectoryException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended bycom.ibm.websphere.product.WASDirectoryException
All implemented interfaces:
java.io.Serializable

  1. public class WASDirectoryException
  2. extends java.lang.Exception

Class WASProductException encodes an exception throw by WASProduct. An exception may or may not be bound within a WASProductException instance. A NLS enabled message may be set within a WASDirectoryException.

Version:
8.0
See Also:
Serialized Form

Field Summary

Modifier and Type Field and Description
  1. protected
  2. java.lang.Exception
boundException
Nested exception
  1. protected
  2. java.lang.String
text
Exception text

Constructor Summary

Constructor and Description
WASDirectoryException(java.lang.String msgKey)
Parameterizied constructor: make a new WASDirectoryException instance, binding in the NLS text associated with the argument message key.
WASDirectoryException(java.lang.String msgKey,java.lang.Exception exception)
Parameterizied constructor: make a new WASDirectoryException instance, binding in the NLS text associated with the argument message key, and binding in the argument exception.
WASDirectoryException(java.lang.String msgKey,java.lang.Object[] msgArgs,java.lang.Exception exception)
Parameterizied constructor: make a new WASDirectoryException instance, binding in the NLS text associated with the argument message key, and binding in the argument exception.

Method Summary

Modifier and Type Method and Description
  1. java.lang.Exception
getBoundException()
Answer the exception bound into the receiver.
  1. java.lang.String
getText()
Answer the text bound into the receiver.
  1. void
printStackTrace(java.io.PrintStream output)
Print the stack trace of the receiver to the argument print stream.
  1. java.lang.String
toString()
Answer a string representation of the receiver.
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

boundException

  1. protected java.lang.Exception boundException
Nested exception

text

  1. protected java.lang.String text
Exception text

Constructor Detail

WASDirectoryException

  1. public WASDirectoryException(java.lang.String msgKey)

Parameterizied constructor: make a new WASDirectoryException instance, binding in the NLS text associated with the argument message key.

Parameters:
msgKey - The key to an NLS enabled message.

WASDirectoryException

  1. public WASDirectoryException(java.lang.String msgKey,
  2. java.lang.Exception exception)

Parameterizied constructor: make a new WASDirectoryException instance, binding in the NLS text associated with the argument message key, and binding in the argument exception. The exception may be null.

Parameters:
msgKey - The key to an NLS enabled message.
exception - An exception to bind into the receiver.

WASDirectoryException

  1. public WASDirectoryException(java.lang.String msgKey,
  2. java.lang.Object[] msgArgs,
  3. java.lang.Exception exception)

Parameterizied constructor: make a new WASDirectoryException instance, binding in the NLS text associated with the argument message key, and binding in the argument exception. The message arguments are substituted into the NLS text. The exception may be null.

Parameters:
msgKey - The key to an NLS enabled message.
msgArgs - An array of arguments to be substituted into the NLS message.
exception - An exception to bind into the receiver.

Method Detail

getBoundException

  1. public java.lang.Exception getBoundException( )
Answer the exception bound into the receiver. This exception may be null.

Returns:
Excetpion The exception bound into the receiver.

getText

  1. public java.lang.String getText( )
Answer the text bound into the receiver. The text will never be null, but it may be an empty string.

Returns:
String The text bound into the receiver.

toString

  1. public java.lang.String toString( )

Answer a string representation of the receiver. This string combines the text of the receiver with the text of the bound exception (if present).

Overrides:
toString in class java.lang.Throwable
Returns:
String A string representation of the receiver.

printStackTrace

  1. public void printStackTrace(java.io.PrintStream output)
Print the stack trace of the receiver to the argument print stream. Append the stack trace of the bound exception, if present.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
output - A print stream onto which to print the stack trace of the receiver.