toNetworkException method

NetworkException toNetworkException()

Creates a NetworkException with the AWSHttpException as the underlying exception.

Implementation

NetworkException toNetworkException() {
  return NetworkException(
    'The request failed due to a network error.',
    recoverySuggestion: 'Ensure that you have an active network connection',
    underlyingException: this,
  );
}