com.redstarhackers.exception
Class ParameterizedErrorCode
java.lang.Object
com.redstarhackers.exception.ErrorCode
com.redstarhackers.exception.ParameterizedErrorCode
- All Implemented Interfaces:
- java.io.Serializable
- public class ParameterizedErrorCode
- extends ErrorCode
A parameterized error code is a specialization of ErrorCode that
takes a list of parameters to use in the resulting error message.
Parameters are expected to match the available parameters in the
error code's message, but if they do not, they are simply ignored.
- Version:
- $Revision: 1.2 $
- Author:
- $Author: kostya $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ParameterizedErrorCode
public ParameterizedErrorCode(ErrorCode code,
java.util.Map paramVals)
getParameters
public java.util.Map getParameters()
- Returns:
- Returns the parameters.
setParameters
protected void setParameters(java.util.Map parameters)
- Parameters:
parameters - The parameters to set.