com.bankframe.ejb
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
                      extended bycom.bankframe.ejb.ValidationException
All Implemented Interfaces:
java.io.Serializable

Deprecated. Use com.bankframe.validation.ValidationException instead

public class ValidationException
extends ValidationException

This class describes the exception 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(int errorNumber)
          Deprecated. This constructor creates a Validation Exception with a given error number
ValidationException(int errorNumber, java.util.Locale locale)
          Deprecated. This constructor creates a Validation Exception with a given error number in a given locale.
ValidationException(int errorNumber, java.lang.String[] parameters)
          Deprecated. This constructor creates a Validation Exception with a given error number and message parameters.
ValidationException(int errorNumber, java.lang.String[] parameters, java.util.Locale locale)
          Deprecated. This constructor creates a Validation Exception with a given error number and message parameters in a given locale.
 
Method Summary
 DataPacket toDataPacket()
          Deprecated. This method returns a DataPacket 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(int errorNumber)
Deprecated. 
This constructor creates a Validation Exception with a given error number

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

ValidationException

public ValidationException(int errorNumber,
                           java.lang.String[] parameters)
Deprecated. 
This constructor creates a Validation Exception with a given error number and message parameters.

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. 
This constructor creates a Validation Exception with a given error number and message parameters in a given locale.

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

ValidationException

public ValidationException(int errorNumber,
                           java.util.Locale locale)
Deprecated. 
This constructor creates a Validation Exception with a given error number in a given locale.

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
Method Detail

toDataPacket

public DataPacket toDataPacket()
Deprecated. 
This method returns a DataPacket that represents a Validation Exception. The DataPacket will have the name of FAILED VALIDATION.

Overrides:
toDataPacket in class ValidationException
Returns:
The DataPacket representation of the Exception.


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