onError method

Future<PlexApiResponse> onError(
  1. Object error,
  2. StackTrace stack
)

Called when an exception occurs. Return a PlexApiResponse (typically PlexError).

Implementation

Future<PlexApiResponse> onError(Object error, StackTrace stack) async =>
    PlexError(400, error.toString());