com.stellent.cis.common.exception
Class ParameterValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.stellent.cis.common.exception.BaseException
              extended by com.stellent.cis.common.exception.ParameterValidationException
All Implemented Interfaces:
java.io.Serializable

public class ParameterValidationException
extends BaseException

See Also:
Serialized Form

Field Summary
protected  java.util.Map m_validationErrors
           
 
Fields inherited from class com.stellent.cis.common.exception.BaseException
m_isWrapper
 
Constructor Summary
ParameterValidationException()
           
ParameterValidationException(java.lang.String message)
           
ParameterValidationException(java.lang.String message, java.lang.Throwable cause)
           
ParameterValidationException(java.lang.Throwable cause)
           
 
Method Summary
 void addError(java.lang.String parameter, java.lang.String localizedString)
           
 java.lang.String getError(java.lang.String parameter)
           
 java.util.Collection getErrors()
           
 java.lang.String getMessage()
          Returns the error message string of this throwable object.
 boolean hasErrors()
           
 java.lang.String removeError(java.lang.String parameter)
           
 
Methods inherited from class com.stellent.cis.common.exception.BaseException
isWrapper
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_validationErrors

protected java.util.Map m_validationErrors
Constructor Detail

ParameterValidationException

public ParameterValidationException()

ParameterValidationException

public ParameterValidationException(java.lang.String message)

ParameterValidationException

public ParameterValidationException(java.lang.String message,
                                    java.lang.Throwable cause)

ParameterValidationException

public ParameterValidationException(java.lang.Throwable cause)
Method Detail

addError

public void addError(java.lang.String parameter,
                     java.lang.String localizedString)

getError

public java.lang.String getError(java.lang.String parameter)

getErrors

public java.util.Collection getErrors()

removeError

public java.lang.String removeError(java.lang.String parameter)

hasErrors

public boolean hasErrors()

getMessage

public java.lang.String getMessage()
Returns the error message string of this throwable object.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.