com.bankframe.localization
Class BankFrameExceptionUtils

java.lang.Object
  extended bycom.bankframe.localization.BankFrameExceptionUtils

public class BankFrameExceptionUtils
extends java.lang.Object

This class provides utility methods for manipulating BankFrameExceptions

Author:
ETU

Method Summary
static boolean containsBankFrameException(java.util.Vector dataPackets)
          This method checks if the specified Vector of DataPackets contains a BankFrameException.
static java.lang.String getMessage(java.util.Vector dataPackets, java.util.Locale locale)
          This method gets the error message for the specified BankFrameException response.
static BankFrameException toBankFrameException(java.util.Vector dataPackets)
          This method converts a DataPacket response to a BankFrameException instance.
static java.util.Vector toVectorResponse(BankFrameException ex)
          This method converts a BankFrame Exception to a DataPacket response.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

containsBankFrameException

public static boolean containsBankFrameException(java.util.Vector dataPackets)
This method checks if the specified Vector of DataPackets contains a BankFrameException.

Parameters:
dataPackets - the vector of DataPackets
Returns:
true if the DataPackets contain a BankFrameException, otherwise false

getMessage

public static java.lang.String getMessage(java.util.Vector dataPackets,
                                          java.util.Locale locale)
This method gets the error message for the specified BankFrameException response.

Parameters:
dataPackets - the vector containing the BankFrameException response
locale - the locale of the exception message
Returns:
the message in the exception as a string

toBankFrameException

public static BankFrameException toBankFrameException(java.util.Vector dataPackets)
This method converts a DataPacket response to a BankFrameException instance.

Parameters:
dataPackets - the DataPackets response
Returns:
a BankFrameException instance

toVectorResponse

public static java.util.Vector toVectorResponse(BankFrameException ex)
This method converts a BankFrame Exception to a DataPacket response.

Parameters:
ex - a BankFrameException instance
Returns:
a vector containing the DataPacket response


Copyright © 2004 Siebel Systems, Inc. All rights reserved.