Class TPCSpayException

  • All Implemented Interfaces:
    Serializable

    public class TPCSpayException
    extends Exception
    TPCSpayException is specific exception class to provide more information related to Samsung Pay Error. Invoking Throwable.getCause() on Samsung Pay Push Provisioning may return TPCSpayException.
    Since:
    1.8.0
    See Also:
    Serialized Form
    • Constructor Detail

      • TPCSpayException

        public TPCSpayException​(Integer statusCode,
                                Integer reasonCode,
                                String message)
        Constructor for TPCSpayException
    • 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