PaystackException constructor

PaystackException(
  1. String message, [
  2. int? statusCode
])

Creates a PaystackException with the provided message and optional statusCode.

The message provides details about the error, while the statusCode (if provided) indicates the HTTP status code returned by the Paystack API.

Implementation

PaystackException(this.message, [this.statusCode]);