deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.commons.utils.kvp
Class MissingParameterException

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.MissingParameterException
All Implemented Interfaces:
Serializable

public class MissingParameterException
extends IllegalArgumentException

Thrown to indicate that a required parameter is missing.

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

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

MissingParameterException

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


MissingParameterException

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

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

MissingParameterException

public MissingParameterException(String msg,
                                 String param)
Constructs a new MissingParameterException 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

MissingParameterException

public MissingParameterException(String msg,
                                 Throwable cause)
Constructs a new MissingParameterException 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.)

MissingParameterException

public MissingParameterException(Throwable cause)
Constructs a new MissingParameterException 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 missing parameter.

Returns:
the name of the missing parameter

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>