public class BusinessException
extends java.lang.Exception
Constructor and Description |
---|
BusinessException(java.lang.String message,
int errorCode,
PaymentMethodType paymentMethodType)
Creates a new business exception.
|
BusinessException(java.lang.String message,
java.lang.String detail,
int errorCode,
java.lang.String acquirerAuthorizationCode,
java.lang.Integer acquirerErrorCode,
PaymentMethodType paymentMethodType)
Creates a new business exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAcquirerAuthorizationCode()
Returns the underlying acquirer authorization code.
|
java.lang.Integer |
getAcquirerErrorCode()
Returns the underlying acquirer error code.
|
int |
getErrorCode()
Returns the underlying Datatrans error code.
|
PaymentMethodType |
getPaymentMethodType()
Returns The selected payment method when exception was thrown.
|
java.lang.String |
getThreeDSecureCardHolderInfo()
May return additional information about the card holder in case of an error during 3D secure.
|
java.lang.String |
getThreeDSecureTransStatusReason()
May return additional information about the transaction status in case of an error during 3D secure.
|
public BusinessException(java.lang.String message, int errorCode, PaymentMethodType paymentMethodType)
message
- Error messageerrorCode
- The underlying Datatrans error codepaymentMethodType
- The selected payment method when exception was thrownpublic BusinessException(java.lang.String message, java.lang.String detail, int errorCode, java.lang.String acquirerAuthorizationCode, java.lang.Integer acquirerErrorCode, PaymentMethodType paymentMethodType)
message
- Error messagedetail
- Error detailerrorCode
- The underlying Datatrans error codeacquirerAuthorizationCode
- The underlying acquirer authorization codeacquirerErrorCode
- The underlying acquirer error codepaymentMethodType
- The selected payment method when exception was thrownpublic int getErrorCode()
public PaymentMethodType getPaymentMethodType()
public java.lang.String getAcquirerAuthorizationCode()
public java.lang.Integer getAcquirerErrorCode()
@Nullable public java.lang.String getThreeDSecureCardHolderInfo()
@Nullable public java.lang.String getThreeDSecureTransStatusReason()