com.redstarhackers.exception
Class ParameterizedErrorCode

java.lang.Object
  extended bycom.redstarhackers.exception.ErrorCode
      extended bycom.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

Field Summary
 
Fields inherited from class com.redstarhackers.exception.ErrorCode
UNKNOWN
 
Constructor Summary
ParameterizedErrorCode(ErrorCode code, java.util.Map paramVals)
           
 
Method Summary
 java.util.Map getParameters()
           
protected  void setParameters(java.util.Map parameters)
           
 
Methods inherited from class com.redstarhackers.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 paramVals)
Method Detail

getParameters

public java.util.Map getParameters()
Returns:
Returns the parameters.

setParameters

protected void setParameters(java.util.Map parameters)
Parameters:
parameters - The parameters to set.