© 2005 BEA Systems, Inc.

com.beasys.commerce.ebusiness.payment
Class PaymentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.beasys.commerce.foundation.exception.ApplicationException
              extended bycom.beasys.commerce.ebusiness.payment.PaymentException
All Implemented Interfaces:
MessageCatalogException, Serializable
Direct Known Subclasses:
AuthorizationException, CaptureException, GeneralServiceException, InvalidCreditCardException, ServiceConfigurationException, ServiceUnavailableException, SettleException

public class PaymentException
extends ApplicationException

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.beasys.commerce.foundation.exception.ApplicationException
embeddedException, logMessages, userMessages
 
Constructor Summary
PaymentException(String namespace, String messageKey)
          Create a payment exception with namespace and message key.
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, TransactionResponse response)
          Create a payment exception with the response object.
 
Method Summary
 TransactionResponse getResponse()
          Get the TransactionReponse that resulted in the exception.
 
Methods inherited from class com.beasys.commerce.foundation.exception.ApplicationException
addLogMessage, addLogMessage, addLogMessage, addMessage, addMessage, addMessage, addUserMessage, addUserMessage, addUserMessage, getEmbeddedException, getLocalizedMessage, getLogMessage, getLogMessages, getMessage, getUserMessage, getUserMessages, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PaymentException

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


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,
                        TransactionResponse response)
Create a payment exception with the response object.

Method Detail

getResponse

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

Returns:
TransactionResponse

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved