PaymentException Class

com.beasys.commerce.ebusiness.payment
PaymentException Class

public class PaymentException

    extends ApplicationException

The base class of all payment related exceptions. If a TransactionResponse resulted in the exception it is embedded.


Hierarchy
Object
  Throwable
    Exception
      ApplicationException
        PaymentException
All Implemented Interfaces

MessageCatalogException, Serializable
Direct Known Subclasses

AuthorizationException, CaptureException, GeneralServiceException, InvalidCreditCardException, ServiceConfigurationException, ServiceUnavailableException, SettleException

Field Summary

   
Fields from  com.beasys.commerce.foundation.exception.ApplicationException
embeddedException, logMessages, userMessages
 

Constructor Summary

PaymentException(String namespace, String messageKey, TransactionResponse response)

Create a payment exception with the response object.
PaymentException(String namespace, String messageKey, Exception embeddedException)

Create a payment exception with an embedded exception.
PaymentException(String namespace, String messageKey, Object messageParameter)

Create a payment exception with a message parameter.
PaymentException(String namespace, String messageKey)

Create a payment exception with namespace and message key.
 

Method Summary

public TransactionResponse
getResponse()
Get the TransactionReponse that resulted in the exception.
 
Methods from  com.beasys.commerce.foundation.exception.ApplicationException
addLogMessage, addLogMessage, addLogMessage, addMessage, addMessage, addMessage, addUserMessage, addUserMessage, addUserMessage, getEmbeddedException, getLocalizedMessage, getLogMessage, getLogMessages, getMessage, getUserMessage, getUserMessages, toString
 
Methods from  java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.beasys.commerce.foundation.exception.MessageCatalogException
addLogMessage, addLogMessage, addLogMessage, addMessage, addMessage, addMessage, addUserMessage, addUserMessage, addUserMessage, getEmbeddedException, getLogMessage, getLogMessages, getUserMessage, getUserMessages
 

Constructor Detail

PaymentException

public PaymentException(String namespace, 
                        String messageKey, 
                        TransactionResponse response)
Create a payment exception with the response object.

PaymentException

public PaymentException(String namespace, 
                        String messageKey, 
                        Exception embeddedException)
Create a payment exception with an embedded exception.

PaymentException

public PaymentException(String namespace, 
                        String messageKey, 
                        Object messageParameter)
Create a payment exception with a message parameter.

PaymentException

public PaymentException(String namespace, 
                        String messageKey)
Create a payment exception with namespace and message key.
 

Method Detail

getResponse() Method

public TransactionResponse getResponse()
Get the TransactionReponse that resulted in the exception.

Returns

TransactionResponse