com.bankframe.ei.txnhandler
Class HostOfflineException

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
                      extended bycom.bankframe.ei.txnhandler.HostOfflineException
All Implemented Interfaces:
java.io.Serializable

public class HostOfflineException
extends ProcessingErrorException

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

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

HostOfflineException

public HostOfflineException(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.

HostOfflineException

public HostOfflineException(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.

HostOfflineException

public HostOfflineException(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

HostOfflineException

public HostOfflineException(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.

HostOfflineException

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

Parameters:
msg - The exception message.

HostOfflineException

public HostOfflineException(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.

HostOfflineException

public HostOfflineException(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 ProcessingErrorException
Returns:
the DataPacket containing the processing error exception data.


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