com.stellent.cis.common.exception
Class ParameterValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.stellent.cis.common.exception.BaseException
com.stellent.cis.common.exception.ParameterValidationException
- All Implemented Interfaces:
- java.io.Serializable
public class ParameterValidationException
- extends BaseException
- See Also:
- Serialized Form
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 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 |
m_validationErrors
protected java.util.Map m_validationErrors
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)
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.