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
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 |
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.
getResponse() Method
public TransactionResponse getResponse()
Get the TransactionReponse that resulted in the exception.
Returns
- TransactionResponse