-
- 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 PaymentErrorerror
-
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 PaymentErrorgetError()Gets the encapsulated error. booleanequals(Object o)inthashCode()-
-
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
-
-
-
-