PaystackException constructor
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]);