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

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.ReadOnlyException
All Implemented Interfaces:
java.io.Serializable

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

This exception is thrown by the Validator, if it has no other possibility to report that an object is read-only.

See Also:
Serialized Form

Constructor Summary
ReadOnlyException(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 read-only.
 
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

ReadOnlyException

public ReadOnlyException(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 read-only.
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 read-only.


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...).