org.deegree.commons.utils.kvp
Class InvalidParameterValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.deegree.commons.utils.kvp.InvalidParameterValueException
All Implemented Interfaces:
Serializable

public class InvalidParameterValueException
extends IllegalArgumentException

Thrown to indicate that a parameter has an unsupported or unsuitable value.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $
See Also:
Serialized Form

Constructor Summary
InvalidParameterValueException()
          Constructs a new InvalidParameterValueException with null as its detail message.
InvalidParameterValueException(String msg)
          Constructs a new InvalidParameterValueException with the specified detail message.
InvalidParameterValueException(String msg, String param)
          Constructs a new InvalidParameterValueException with the specified detail message.
InvalidParameterValueException(String msg, Throwable cause)
          Constructs a new InvalidParameterValueException with the specified detail message and cause.
InvalidParameterValueException(Throwable cause)
          Constructs a new InvalidParameterValueException exception with the specified cause and a detail message of (cause==null ?
 
Method Summary
 String getName()
          Returns the name of the invalid parameter.
 
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

InvalidParameterValueException

public InvalidParameterValueException()
Constructs a new InvalidParameterValueException with null as its detail message.


InvalidParameterValueException

public InvalidParameterValueException(String msg)
Constructs a new InvalidParameterValueException with the specified detail message.

Parameters:
msg - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).

InvalidParameterValueException

public InvalidParameterValueException(String msg,
                                      String param)
Constructs a new InvalidParameterValueException with the specified detail message.

Parameters:
msg - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
param - name of the missing parameter

InvalidParameterValueException

public InvalidParameterValueException(String msg,
                                      Throwable cause)
Constructs a new InvalidParameterValueException with the specified detail message and cause.

Parameters:
msg - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

InvalidParameterValueException

public InvalidParameterValueException(Throwable cause)
Constructs a new InvalidParameterValueException exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method Detail

getName

public String getName()
Returns the name of the invalid parameter.

Returns:
the name of the invalid parameter


Copyright © 2011. All Rights Reserved.