toString method

  1. @override
String toString()
override

Returns a string representation of the exception.

The output includes the error message and, if available, the statusCode.

Implementation

@override
String toString() =>
    'PaystackException: $message${statusCode != null ? " (Status Code: $statusCode)" : ""}';