com.rshtech.exception
Class ParameterizedErrorCode
java.lang.Object
com.rshtech.exception.ErrorCode
com.rshtech.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: 3137 $
- Author:
- $Author: kostya $
- See Also:
- Serialized Form
|
Method Summary |
java.util.Map<java.lang.String,?> |
getParameters()
|
protected void |
setParameters(java.util.Map<java.lang.String,?> parameters)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ParameterizedErrorCode
public ParameterizedErrorCode(ErrorCode code,
java.util.Map<java.lang.String,?> paramVals)
getParameters
public java.util.Map<java.lang.String,?> getParameters()
- Returns:
- Returns the parameters.
setParameters
protected void setParameters(java.util.Map<java.lang.String,?> parameters)
- Parameters:
parameters - The parameters to set.