com.sun.slamd.parameter
Class InvalidValueException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sun.slamd.common.SLAMDException
              extended bycom.sun.slamd.parameter.InvalidValueException
All Implemented Interfaces:
java.io.Serializable

public class InvalidValueException
extends SLAMDException

This class defines an exception that may be thrown if an inappropriate value is specified for a parameter.

See Also:
Serialized Form

Constructor Summary
InvalidValueException(java.lang.String message)
          Creates a new exception that may be thrown if an inappropriate value is specified for a parameter.
InvalidValueException(java.lang.String message, java.lang.Exception parentException)
          Creates a new exception that may be thrown if an inappropriate value is specified for a parameter.
 
Method Summary
 java.lang.Exception getParentException()
          Retrieves the parent exception that triggered this invalid value 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

InvalidValueException

public InvalidValueException(java.lang.String message)
Creates a new exception that may be thrown if an inappropriate value is specified for a parameter.

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

InvalidValueException

public InvalidValueException(java.lang.String message,
                             java.lang.Exception parentException)
Creates a new exception that may be thrown if an inappropriate value is specified for a parameter.

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

getParentException

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

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