PaymentException constructor

PaymentException(
  1. String message, {
  2. dynamic cause,
  3. int? statusCode,
  4. String? responseBody,
  5. PaymentErrorType errorType = PaymentErrorType.unknown,
  6. 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,
});