public class FinancialException extends PluginException
This exception is thrown whenever a transaction against the back-end system fails with a financial error.
Example: Invalid credit card information is found during the method
approve
. The plug-in should set all error codes returned from the payment back-end system.
For further information, please see PluginException
.
Constructor and Description |
---|
FinancialException()
This method is a default constructor.
|
FinancialException(java.lang.String resourceBundleName,
java.lang.String messageKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText)
This method is a constructor with a localized message.
|
FinancialException(java.lang.String resourceBundleName,
java.lang.String messageKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText,
java.lang.Throwable exception)
This method is a constructor with a localized message and a chained exception.
|
FinancialException(java.lang.Throwable exception)
This method is a constructor with a chained exception.
|
getCredit, getFinancialTransaction, getPayment, getPaymentInstruction, setCredit, setFinancialTransaction, setPayment, setPaymentInstruction
addProperties, addProperties, addProperty, dumpException, getClassSource, getDefaultMessage, getFormatArguments, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageKey, getMethodSource, getPreviousException, getProperties, getResourceBundleName, setClassSource, setDefaultMessage, setFormatArguments, setMessageKey, setMethodSource, setPreviousException, setProperties, setResourceBundleName
public FinancialException()
This method is a default constructor.
public FinancialException(java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.Object[] formatArguments, java.lang.String defaultText)
This method is a constructor with a localized message.
resourceBundleName
- The name of the resource bundle to be used to generate a localized
exception message.messageKey
- The key to identify the resource to generate a localized exception.formatArguments
- An array of arguments to build the localized message.defaultText
- The message that is shown if the localized message cannot be generated.public FinancialException(java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.Object[] formatArguments, java.lang.String defaultText, java.lang.Throwable exception)
This method is a constructor with a localized message and a chained exception.
resourceBundleName
- The name of the resource bundle to be used to generate a localized
exception message.messageKey
- The key to identify the resource to generate a localized exception.formatArguments
- An array of arguments to build the localized message.defaultText
- The message that is shown if the localized message cannot be generated.exception
- The exception to be chained.public FinancialException(java.lang.Throwable exception)
This method is a constructor with a chained exception.
exception
- The exception to be chained.