> + return new AuthorizationException(error.getMessage(), exception);
> + } else if ("InvalidParameterValueException".equals(error.getCode())) {
> + return new IllegalArgumentException(error.getMessage(), exception);
> + } else if ("LimitExceededException".equals(error.getCode())) {
> + return new InsufficientResourcesException(error.getMessage(),
> exception);
> + } else if ("ResourceNotFoundException".equals(error.getCode())) {
> + return new ResourceNotFoundException(error.getMessage(), exception);
> + }
> + return exception;
> + }
> +
> + @Override
> + public void handleError(HttpCommand command, HttpResponse response) {
> + GlacierError error = this.apply(response);
> + Exception exception = error.isValid() ? refineException(error, new
> GlacierResponseException(command, response,
> + error)) : new HttpResponseException(command, response);
[minor] Formatting of this ternary operator? E.g.
```
Exception exception = error.isValid()
? refineException(error, new GlacierResponseException(command,
response, error))
: new HttpResponseException(command, response);
```
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/4/files#r13034708