com.sun.slamd.common
Class SLAMDException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.slamd.common.SLAMDException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AlreadyRunningException, ClientException, InvalidValueException, SLAMDServerException, UnableToRunException

public class SLAMDException
extends java.lang.Exception

This class defines the parent class for all exceptions that are defined in the SLAMD environment.

Author:
Neil A. Wilson
See Also:
Serialized Form

Constructor Summary
SLAMDException(java.lang.String message)
          Creates a new exception that may be thrown if a problem occurs in the SLAMD environment.
SLAMDException(java.lang.String message, java.lang.Exception parentException)
          Creates a new exception that may be thrown if a problem occurs in the SLAMD environment.
 
Method Summary
 java.lang.Exception getParentException()
          Retrieves the parent exception that triggered this SLAMD exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SLAMDException

public SLAMDException(java.lang.String message)
Creates a new exception that may be thrown if a problem occurs in the SLAMD environment.

Parameters:
message - A message that provides information about the nature of the exception.

SLAMDException

public SLAMDException(java.lang.String message,
                      java.lang.Exception parentException)
Creates a new exception that may be thrown if a problem occurs in the SLAMD environment.

Parameters:
message - A message that provides information about the nature of the exception.
parentException - The parent exception that triggered this SLAMD exception.
Method Detail

getParentException

public java.lang.Exception getParentException()
Retrieves the parent exception that triggered this SLAMD exception.

Returns:
The parent exception that triggered this SLAMD exception, or null if no parent exception is available.