public class S3Exception extends Exception
Constructor and Description |
---|
S3Exception(Exception exception,
String resource,
S3ErrorCode errorCode)
Derives a new
S3Exception from an existing exception. |
S3Exception(String resource,
S3ErrorCode errorCode)
Constructs a new
S3Exception . |
Modifier and Type | Method and Description |
---|---|
S3ErrorCode |
getErrorCode() |
String |
getResource() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public S3Exception(String resource, S3ErrorCode errorCode)
S3Exception
.resource
- the resource name (bucket or object key)errorCode
- the error codepublic S3Exception(Exception exception, String resource, S3ErrorCode errorCode)
S3Exception
from an existing exception.exception
- the existing exceptionresource
- the resource name (bucket or object key)errorCode
- the error codepublic S3ErrorCode getErrorCode()
public String getResource()
Copyright © 2023. All Rights Reserved.