com.rshtech.exception
Class ParameterizedErrorCode

java.lang.Object
  extended by com.rshtech.exception.ErrorCode
      extended by 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

Field Summary
 
Fields inherited from class com.rshtech.exception.ErrorCode
UNKNOWN
 
Constructor Summary
ParameterizedErrorCode(ErrorCode code, java.util.Map<java.lang.String,?> paramVals)
           
 
Method Summary
 java.util.Map<java.lang.String,?> getParameters()
           
protected  void setParameters(java.util.Map<java.lang.String,?> parameters)
           
 
Methods inherited from class com.rshtech.exception.ErrorCode
equals, equals, getCode, hashCode, setCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterizedErrorCode

public ParameterizedErrorCode(ErrorCode code,
                              java.util.Map<java.lang.String,?> paramVals)
Method Detail

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.