com.sun.slamd.client
Class ClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.slamd.common.SLAMDException
              extended by com.sun.slamd.client.ClientException
All Implemented Interfaces:
java.io.Serializable

public class ClientException
extends SLAMDException

This class defines an exception that may be thrown if a problem is encountered while performing some operation in the client.

Author:
Neil A. Wilson
See Also:
Serialized Form

Constructor Summary
ClientException(java.lang.String message)
          Creates a new SLAMD client exception with the specified message.
ClientException(java.lang.String message, java.lang.Exception parentException)
          Creates a new SLAMD client exception with the specified message and parent exception.
 
Method Summary
 java.lang.Exception getParentException()
          Retrieves the parent exception that triggered this client 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

ClientException

public ClientException(java.lang.String message)
Creates a new SLAMD client exception with the specified message.

Parameters:
message - A message providing more information about the exception.

ClientException

public ClientException(java.lang.String message,
                       java.lang.Exception parentException)
Creates a new SLAMD client exception with the specified message and parent exception.

Parameters:
message - A message providing more information about the exception.
parentException - The parent exception that triggered this client exception.
Method Detail

getParentException

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

Overrides:
getParentException in class SLAMDException
Returns:
The parent exception that triggered this client exception, or null if no parent exception is available.