public class ErrorTranslation extends Object
translateException
and nearby; that has grown to be
a large a complex piece of logic, as it ties in with retry/recovery
policies, throttling, etc.
This class is where future expansion of that code should go so that we have
an isolated place for all the changes..
The existing code las been left in S3AUtils it is to avoid cherry-picking
problems on backports.Modifier and Type | Class and Description |
---|---|
static class |
ErrorTranslation.AwsErrorCodes
AWS error codes explicitly recognized and processes specially;
kept in their own class for isolation.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isObjectNotFound(com.amazonaws.AmazonServiceException e)
Does this exception indicate that a reference to an object
returned a 404.
|
static boolean |
isUnknownBucket(com.amazonaws.AmazonServiceException e)
Does this exception indicate that the AWS Bucket was unknown.
|
public static boolean isUnknownBucket(com.amazonaws.AmazonServiceException e)
e
- exception.public static boolean isObjectNotFound(com.amazonaws.AmazonServiceException e)
e
- exception.Copyright © 2008–2021 Apache Software Foundation. All rights reserved.