convertedException method

  1. @override
KntException convertedException(
  1. Exception exception
)
override

Implementation

@override
KntException convertedException(Exception exception) {
  if (exception is DioError) {
    return KntException(
      convertedIssue(exception),
      code: exception.response?.statusCode,
      additionalInfo: exception.response?.statusMessage ?? exception.message,
    );
  } else {
    return super.convertedException(exception);
  }
}