-
- All Implemented Interfaces:
-
java.io.Serializable
public class PaymentException extends Exception
Exception thrown when an error occurs during the creation of PaymentParams or Transaction.
-
-
Field Summary
Fields Modifier and Type Field Description private final PaymentError
error
-
Constructor Summary
Constructors Constructor Description PaymentException(PaymentError error)
Creates a new PaymentException and encapsulates the given error. PaymentException(PaymentError error, Throwable cause)
Creates a new PaymentException and encapsulates the given error and the underlying root cause.
-
Method Summary
Modifier and Type Method Description PaymentError
getError()
Gets the encapsulated error. boolean
equals(Object o)
int
hashCode()
-
-
Constructor Detail
-
PaymentException
PaymentException(PaymentError error)
Creates a new PaymentException and encapsulates the given error.- Parameters:
error
- The error to encapsulate
-
PaymentException
PaymentException(PaymentError error, Throwable cause)
Creates a new PaymentException and encapsulates the given error and the underlying root cause.- Parameters:
error
- PaymentError describing the the causecause
- Underlying cause of the error
-
-
-
-