AWSHttpException constructor

AWSHttpException(
  1. AWSBaseHttpRequest request, [
  2. Object? underlyingException
])

Exception thrown when an error occurs during an AWSHttpOperation.

Implementation

factory AWSHttpException(
  AWSBaseHttpRequest request, [
  Object? underlyingException,
]) {
  if (underlyingException is AWSHttpException) {
    return underlyingException;
  }
  return AWSHttpException._(
    request.method,
    request.uri,
    underlyingException,
  );
}