com.bankframe.validation
Class ValidationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.bankframe.localization.BankFrameException
              extended bycom.bankframe.EonException
                  extended bycom.bankframe.validation.ValidationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ValidationException

public class ValidationException
extends EonException

Bankframe ValidationException This exception is thrown when validation on an object fails

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.bankframe.EonException
DEBUG
 
Fields inherited from class com.bankframe.localization.BankFrameException
CHAINED_EXCEPTION_DIVIDER, CHAINED_JAVA_EXCEPTION_MSG, EXCEPTION_CLASS_NAME, EXCEPTION_NAME
 
Constructor Summary
ValidationException(BankFrameMessage msg)
          This constructor creates a ValidationException using the specified message
ValidationException(BankFrameMessage message, java.lang.Throwable cause)
          Constructor Note that the detail message associated with cause is not automatically incorporated in this exception's detail message
ValidationException(int errorNumber)
          Constructor for creating a Validation Exception.
ValidationException(int errorNumber, java.util.Locale locale)
          Deprecated. use ValidationException(BankFrameMessage msg) instead.
ValidationException(int errorNumber, java.lang.String[] parameters)
          Constructor for creating a Validation Exception.
ValidationException(int errorNumber, java.lang.String[] parameters, java.util.Locale locale)
          Deprecated. use ValidationException(BankFrameMessage msg) instead.
ValidationException(java.lang.Throwable cause)
          This constructor creates a chained exception
 
Method Summary
 DataPacket toDataPacket()
          Return a data packet that represents a Validation Exception.
 
Methods inherited from class com.bankframe.EonException
fromEonException, fromException, getMessage
 
Methods inherited from class com.bankframe.localization.BankFrameException
getBankFrameMessage, getCause, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(BankFrameMessage msg)
This constructor creates a ValidationException using the specified message

Parameters:
msg - The exception message

ValidationException

public ValidationException(java.lang.Throwable cause)
This constructor creates a chained exception

Parameters:
cause - The original cause of the exception. cause must not be null.

ValidationException

public ValidationException(BankFrameMessage message,
                           java.lang.Throwable cause)
Constructor Note that the detail message associated with cause is not automatically incorporated in this exception's detail message

Parameters:
message - The error message for the exception
cause - The original cause of this ProcessingErrorException. cause must not be null.

ValidationException

public ValidationException(int errorNumber)
Constructor for creating a Validation Exception. This constructor will be deprecated in a future release of BankFrame MCA. Use ValidationException(BankFrameMessage msg) instead.

Parameters:
errorNumber - ErrorNumber is the key of the message to retrieve from the messages file

ValidationException

public ValidationException(int errorNumber,
                           java.util.Locale locale)
Deprecated. use ValidationException(BankFrameMessage msg) instead.

Constructor for creating a Validation Exception.

Parameters:
errorNumber - ErrorNumber is the key of the message to retrieve from the messages file
locale - The locale to use for localizing the error message

ValidationException

public ValidationException(int errorNumber,
                           java.lang.String[] parameters)
Constructor for creating a Validation Exception. This constructor will be deprecated in a future release of BankFrame MCA. Use ValidationException(BankFrameMessage msg) instead.

Parameters:
errorNumber - ErrorNumber is the key of the message to retrieve from the messages file
parameters - Array containing the parameters to be substituted into the error message

ValidationException

public ValidationException(int errorNumber,
                           java.lang.String[] parameters,
                           java.util.Locale locale)
Deprecated. use ValidationException(BankFrameMessage msg) instead.

Constructor for creating a Validation Exception.

Parameters:
errorNumber - ErrorNumber is the key of the message to retrieve from the messages file
parameters - Array containing the parameters to be substituted into the error message
locale - The locale to use for localizing the error message
Method Detail

toDataPacket

public DataPacket toDataPacket()
Return a data packet that represents a Validation Exception. The data packet will have a name of FAILED VALIDATION.

Overrides:
toDataPacket in class EonException
Returns:
DataPacket that represents this exception


Copyright © 2005, 2007, Oracle. All rights reserved.