onError method

void onError(
  1. DioException dioException
)

Handle the DioException response if there is an issue.

Implementation

void onError(DioException dioException) {}