org.chwf.servlet
Class MultiParameterException

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

public class MultiParameterException
extends ParameterException

A exception for holding multiple parameter exceptions.

Author:
Paul Strack
See Also:
Serialized Form

Constructor Summary
MultiParameterException(java.util.Map parameterErrors)
          Constructor for MultiParameterException.
 
Method Summary
 java.lang.String getMessage(java.lang.String parameter)
          Retrieve the message for the given parameter.
 java.util.Iterator getParameterNames()
          Iterator of parameter names.
 
Methods inherited from class org.chwf.servlet.ParameterException
getCause, getMessage, getParameter
 
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

MultiParameterException

public MultiParameterException(java.util.Map parameterErrors)
Constructor for MultiParameterException.
Parameters:
parameterErrors - Map containing parameters and their errors.
Method Detail

getParameterNames

public java.util.Iterator getParameterNames()
Iterator of parameter names.
Returns:
Iterator of parameter names.

getMessage

public java.lang.String getMessage(java.lang.String parameter)
Retrieve the message for the given parameter.
Parameters:
parameter - The parameter name.
Returns:
The parameter's error message.


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