Class TPCSpayException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.thalesgroup.tpcsdk.manager.exception.TPCSpayException
-
- All Implemented Interfaces:
Serializable
public class TPCSpayException extends Exception
TPCSpayException is specific exception class to provide more information related to Samsung Pay Error. InvokingThrowable.getCause()on Samsung Pay Push Provisioning may return TPCSpayException.- Since:
- 1.8.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TPCSpayException(Integer statusCode, Integer reasonCode, String message)Constructor for TPCSpayException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetSpayReasonCode()Provides extra reason code from the SamsungPay APIs for reference when availableIntegergetSpayStatusCode()Provides original status/result code from the SamsungPay APIs for reference-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getSpayStatusCode
public Integer getSpayStatusCode()
Provides original status/result code from the SamsungPay APIs for reference- Returns:
- Original code or null when unavailable
-
getSpayReasonCode
public Integer getSpayReasonCode()
Provides extra reason code from the SamsungPay APIs for reference when available- Returns:
- Original reason code or null when unavailable
-
-