org.chwf.servlet
Class ParameterException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.chwf.i18n.MessageException
                    |
                    +--org.chwf.servlet.ParameterException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MultiParameterException

public class ParameterException
extends MessageException

Exception related to a particular request parameter.

Author:
Paul Strack
See Also:
Serialized Form

Constructor Summary
protected ParameterException(java.lang.String pattern, java.lang.Object[] arguments)
          Constructor for ParameterException.
  ParameterException(java.lang.Throwable error, java.lang.String parameter)
          Constructor for ParameterException.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the original error.
 java.lang.String getMessage()
          Returns the message of the original error.
 java.lang.String getParameter()
          The problematic parameter.
 
Methods inherited from class org.chwf.i18n.MessageException
toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterException

protected ParameterException(java.lang.String pattern,
                             java.lang.Object[] arguments)
Constructor for ParameterException.
Parameters:
pattern - The message pattern.
arguments - The arguments.

ParameterException

public ParameterException(java.lang.Throwable error,
                          java.lang.String parameter)
Constructor for ParameterException.
Parameters:
error - The error.
parameter - The problematic parameter.
Method Detail

getParameter

public java.lang.String getParameter()
The problematic parameter.
Returns:
The parameter name.

getMessage

public java.lang.String getMessage()
Returns the message of the original error.
Overrides:
getMessage in class MessageException
Returns:
The message of the original error.

getCause

public java.lang.Throwable getCause()
Returns the original error.
Returns:
The original error.


Copyright © 2002-2004, Paul Strack. All Rights Reserved.