com.bankframe.ejb
Class ProcessingErrorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.bankframe.localization.BankFrameException
              extended bycom.bankframe.EonException
                  extended bycom.bankframe.ejb.ProcessingErrorException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessControlException, AuthenticationException, HostConnectivityException, HostOfflineException, HostProcessingErrorException, InvalidSessionException, RequestRouterException, RollBackException

public class ProcessingErrorException
extends EonException

This exception class is used by BankFrame Banking Processes to report a general error condition that occurs during processing. Generally a BankFrameMessage object should be part of this exception. This will point the the error message in the localized error message file.

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
ProcessingErrorException(BankFrameMessage msg)
          This constructor creates a ProcessingErrorException with the specified message.
ProcessingErrorException(BankFrameMessage message, java.lang.Throwable cause)
          Constructor

NOTE: The detail message associated with cause is not automatically incorporated in this exception's detail message.
ProcessingErrorException(int errorNumber)
          This constructor creates a processing error exception given an error number.
ProcessingErrorException(int errorNumber, java.util.Locale locale)
          Deprecated. use ProcessingErrorException(BankFrameMessage msg) instead.
ProcessingErrorException(int errorNumber, java.lang.String[] parameters)
          Deprecated. use ProcessingErrorException(BankFrameMessage msg, String[] parameters) instead.
ProcessingErrorException(int errorNumber, java.lang.String[] parameters, java.util.Locale locale)
          Deprecated. use ProcessingErrorException(BankFrameMessage msg) instead.
ProcessingErrorException(java.lang.Throwable cause)
          This constructor creates a chained exception.
 
Method Summary
 DataPacket toDataPacket()
          This method returns a data packet that represents this 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

ProcessingErrorException

public ProcessingErrorException(int errorNumber)
This constructor creates a processing error exception given an error number. This constructor will be deprecated in a future release of BankFrame MCA. Use ProcessingErrorException(BankFrameMessage msg) instead.

Parameters:
errorNumber - the error number, which is a key into the messages file.

ProcessingErrorException

public ProcessingErrorException(int errorNumber,
                                java.lang.String[] parameters)
Deprecated. use ProcessingErrorException(BankFrameMessage msg, String[] parameters) instead.

This constructor creates a processing error exception with a given error number and parameters for the error message. This constructor will be deprecated in a future release of BankFrame MCA. Use ProcessingErrorException(BankFrameMessage msg) instead.

Parameters:
errorNumber - Error number is a key into the messages file.

ProcessingErrorException

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

This constructor creates a processing error exception given an error number and parameters for the error message, in a given locale.

Parameters:
errorNumber - Error number is a key into the messages file.
parameters - Array of parameters to be substituted into the error message
locale - The locale to use for localizing the error message

ProcessingErrorException

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

This constructor creates a processing error exception given an error number.

Parameters:
errorNumber - Error number is a key into the messages file.
locale - The locale to use for localizing the error message.

ProcessingErrorException

public ProcessingErrorException(BankFrameMessage msg)
This constructor creates a ProcessingErrorException with the specified message.

Parameters:
msg - The exception message.

ProcessingErrorException

public ProcessingErrorException(BankFrameMessage message,
                                java.lang.Throwable cause)
Constructor

NOTE: 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. must not be null.

ProcessingErrorException

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

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

toDataPacket

public DataPacket toDataPacket()
This method returns a data packet that represents this exception. The DataPacket will have the name PROCESSING ERROR EXCEPTION.

Overrides:
toDataPacket in class EonException
Returns:
the DataPacket containing the processing error exception data.


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