Package alluxio.proxy.s3
Class S3Exception
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- alluxio.proxy.s3.S3Exception
-
- All Implemented Interfaces:
java.io.Serializable
public class S3Exception extends java.lang.ExceptionAn exception thrown during processing S3 REST requests.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description S3Exception(java.lang.Exception exception, java.lang.String resource, S3ErrorCode errorCode)Derives a newS3Exceptionfrom an existing exception.S3Exception(java.lang.String resource, S3ErrorCode errorCode)Constructs a newS3Exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S3ErrorCodegetErrorCode()java.lang.StringgetResource()
-
-
-
Constructor Detail
-
S3Exception
public S3Exception(java.lang.String resource, S3ErrorCode errorCode)Constructs a newS3Exception.- Parameters:
resource- the resource name (bucket or object key)errorCode- the error code
-
S3Exception
public S3Exception(java.lang.Exception exception, java.lang.String resource, S3ErrorCode errorCode)Derives a newS3Exceptionfrom an existing exception.- Parameters:
exception- the existing exceptionresource- the resource name (bucket or object key)errorCode- the error code
-
-
Method Detail
-
getErrorCode
public S3ErrorCode getErrorCode()
- Returns:
- the error code
-
getResource
public java.lang.String getResource()
- Returns:
- the resource name
-
-