com.bankframe.services.devices
Class DeviceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.bankframe.localization.BankFrameException
              extended bycom.bankframe.EonException
                  extended bycom.bankframe.services.devices.DeviceException
All Implemented Interfaces:
java.io.Serializable

public class DeviceException
extends EonException

This exception is thrown by BankFrame MCA devices to indicate that a problem occured while attempting to process or parse the data retrieved from such a device.

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
DeviceException(BankFrameMessage msg)
          Constructor
DeviceException(BankFrameMessage msg, java.lang.Throwable t)
          Constructor
DeviceException(int errorNumber)
          Constructor to create a processing error exception given an error number.
DeviceException(int errorNumber, java.lang.String[] parameters)
          Constructor to create a device exception given an error number and parameters for the error message This method will be deprecated in a future version of BankFrame MCA.
DeviceException(java.lang.Throwable t)
          Constructor
 
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

DeviceException

public DeviceException(java.lang.Throwable t)
Constructor

Parameters:
t - The cause of this exception

DeviceException

public DeviceException(BankFrameMessage msg,
                       java.lang.Throwable t)
Constructor

Parameters:
msg - The error message
t - The cause of this exception

DeviceException

public DeviceException(BankFrameMessage msg)
Constructor

Parameters:
msg - The error message

DeviceException

public DeviceException(int errorNumber)
Constructor to create a processing error exception given an error number. This method will be deprecated in a future version of BankFrame MCA.

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

DeviceException

public DeviceException(int errorNumber,
                       java.lang.String[] parameters)
Constructor to create a device exception given an error number and parameters for the error message This method will be deprecated in a future version of BankFrame MCA.

Parameters:
errorNumber - Error number is a key into the messages file.
parameters - Array of parameters to be substituted into the error message
Method Detail

toDataPacket

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

Overrides:
toDataPacket in class EonException
Returns:
DataPacket containing the device exception data


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