PaymentException constructor
PaymentException(
- String message, {
- dynamic cause,
- int? statusCode,
- String? responseBody,
- PaymentErrorType errorType = PaymentErrorType.unknown,
- String? errorCode,
Creates a new PaymentException with the specified details.
The message
parameter is required and should describe the error.
Other parameters are optional and provide additional context about the error.
Implementation
PaymentException(
this.message, {
this.cause,
this.statusCode,
this.responseBody,
this.errorType = PaymentErrorType.unknown,
this.errorCode,
});