public class S3Exception extends Exception
Constructor and Description |
---|
S3Exception(Exception exception,
String resource,
S3ErrorCode errorCode)
Derives a new
S3Exception from an existing exception. |
S3Exception(S3ErrorCode errorCode)
Constructs a new
S3Exception . |
S3Exception(String resource,
S3ErrorCode errorCode)
Constructs a new
S3Exception . |
S3Exception(String message,
String resource,
S3ErrorCode errorCode)
Derives a new
S3Exception from an existing exception. |
Modifier and Type | Method and Description |
---|---|
S3ErrorCode |
getErrorCode() |
String |
getResource() |
void |
setResource(String resource) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public S3Exception(S3ErrorCode errorCode)
S3Exception
.errorCode
- the error codepublic 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 S3Exception(String message, String resource, S3ErrorCode errorCode)
S3Exception
from an existing exception.message
- the exception messageresource
- the resource name (bucket or object key)errorCode
- the error codepublic S3ErrorCode getErrorCode()
public String getResource()
public void setResource(String resource)
resource
- the S3 resource stringCopyright © 2023. All Rights Reserved.