com.softwareag.centrasite.appl.framework.validation
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.softwareag.centrasite.appl.framework.CSAppFrameworkException
              extended by com.softwareag.centrasite.appl.framework.validation.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends com.softwareag.centrasite.appl.framework.CSAppFrameworkException

This exception is thrown by the Validator, if it has no other possibility to report a validation error.

See Also:
Serialized Form

Constructor Summary
ValidationException(java.lang.Object pSource, ErrorCode pErrorCode, java.lang.String pErrorMessage, java.lang.Object[] pDetails)
          Creates a new instance.
 
Method Summary
 ErrorCode getErrorCode()
          Returns the error code.
 java.lang.Object[] getErrorDetails()
          Returns the error details, suitable for Formatter.format(String, Object...).
 java.lang.String getErrorMessage()
          Returns the error message, a format string suitable for Formatter.format(String, Object...).
 java.lang.Object getSource()
          Returns the source object, which was found to be invalid.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(java.lang.Object pSource,
                           ErrorCode pErrorCode,
                           java.lang.String pErrorMessage,
                           java.lang.Object[] pDetails)
Creates a new instance.

Parameters:
pSource - The source object, which was found to be invalid.
pErrorCode - The error code
pErrorMessage - The error message, a format string suitable for Formatter.format(String, Object...).
pDetails - The error details, suitable for Formatter.format(String, Object...).
Method Detail

getSource

public java.lang.Object getSource()
Returns the source object, which was found to be invalid.


getErrorCode

public ErrorCode getErrorCode()
Returns the error code.


getErrorMessage

public java.lang.String getErrorMessage()
Returns the error message, a format string suitable for Formatter.format(String, Object...).


getErrorDetails

public java.lang.Object[] getErrorDetails()
Returns the error details, suitable for Formatter.format(String, Object...).