onError method

dynamic onError(
  1. DioException dioException
)

Handle the DioException response if there is an issue.

Implementation

onError(DioException dioException) {}