com.bankframe
Class EonException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.bankframe.localization.BankFrameException
              extended bycom.bankframe.EonException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DeviceException, MissingLocaleException, ProcessingErrorException, UserInterfaceException, ValidationException

public abstract class EonException
extends BankFrameException

This class is provided for backwards compatability with existing BankFrame code. This class has been superceded by com.bankframe.localization.BankFrameException. This class has been modified to extend BankFrameException. This class will be deprecated in a future version of BankFrame MCA

See Also:
BankFrameException, Serialized Form

Field Summary
static boolean DEBUG
          Turn error numbers on or off in the error output message
 
Fields inherited from class com.bankframe.localization.BankFrameException
CHAINED_EXCEPTION_DIVIDER, CHAINED_JAVA_EXCEPTION_MSG, EXCEPTION_CLASS_NAME, EXCEPTION_NAME
 
Constructor Summary
EonException(BankFrameMessage msg)
          This constructor creates an EonException using the specified message
EonException(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
EonException(int errorNumber)
          EonException constructor specifying the error message to display.
EonException(int errorNumber, java.util.Locale locale)
          Deprecated. use EonException(BankFrameMessage msg) instead.
EonException(int errorNumber, java.lang.String[] params)
          EonException constructor specifying the error message to display and the parameters for the error message
EonException(int errorNumber, java.lang.String[] params, java.util.Locale locale)
          Deprecated. use EonException(BankFrameMessage msg) instead.
EonException(java.lang.Throwable cause)
          This constructor creates a chained exception
 
Method Summary
 EonException fromEonException(EonException exception)
          Deprecated. use EonException(Throwable t) instead.
 EonException fromException(java.lang.Exception exception)
          Deprecated. use EonException(Throwable t) instead.
 java.lang.String getMessage()
          This method gets the error message as a localized String.
 DataPacket toDataPacket()
          This method returns a data packet that represents this exception.
 
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
 

Field Detail

DEBUG

public static boolean DEBUG
Turn error numbers on or off in the error output message

Constructor Detail

EonException

public EonException(int errorNumber)
EonException constructor specifying the error message to display. This constructor will be deprecated in a future release of BankFrame MCA.

Parameters:
errorNumber - Error number for this exception

EonException

public EonException(int errorNumber,
                    java.lang.String[] params)
EonException constructor specifying the error message to display and the parameters for the error message

Parameters:
errorNumber - Error number for this exception
params - Array containing the parameters for this message

EonException

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

EonException constructor specifying the error message to display, the parameters for the error message and the locale the error message is to be displayed for.

Parameters:
errorNumber - Error number for this exception
params - Array containing the parameters for this message
locale - Locale the locale in which the exception will be handled.

EonException

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

EonException constructor specifying the error message to display and the locale the error message is to be displayed for.

Parameters:
errorNumber - Error number for this exception
locale - Locale the locale in which the exception will be handled.

EonException

public EonException(BankFrameMessage msg)
This constructor creates an EonException using the specified message

Parameters:
msg - The exception message

EonException

public EonException(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 EonException. This parameter must not be null.

EonException

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

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

fromEonException

public EonException fromEonException(EonException exception)
Deprecated. use EonException(Throwable t) instead.

This method transforms one type of EonException to another


fromException

public EonException fromException(java.lang.Exception exception)
Deprecated. use EonException(Throwable t) instead.

This method transforms a non Eon-based exception into an EonException

Parameters:
exception - The exception to be transformed

getMessage

public java.lang.String getMessage()
This method gets the error message as a localized String. This method uses the default Locale. Use this method with caution, or use getMessage(Locale locale) instead.

Overrides:
getMessage in class BankFrameException
Returns:
Localized error message

toDataPacket

public DataPacket toDataPacket()
This method returns a data packet that represents this exception.

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


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