PaystackException class
An exception class for handling Paystack-related errors.
This class represents errors that occur during Paystack transactions or API interactions. It includes an error message and an optional statusCode that provides additional context about the HTTP response.
- Implemented types
Constructors
- PaystackException(String message, [int? statusCode])
-
Creates a PaystackException with the provided
message
and optionalstatusCode
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A descriptive message explaining the error.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
An optional HTTP status code associated with the error.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of the exception.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited