Package com.adobe.testing.s3mock
Class S3Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.adobe.testing.s3mock.S3Exception
- All Implemented Interfaces:
Serializable
RuntimeException to communicate general S3 errors.
These are handled by S3MockConfiguration.S3MockExceptionHandler,
mapped to ErrorResponse and serialized.
API Reference- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exceptionstatic final S3Exception -
Constructor Summary
ConstructorsConstructorDescriptionS3Exception(int status, String code, String message) Creates a new S3Exception to be mapped as anErrorResponse. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_PART_NUMBER
-
INVALID_PART
-
INVALID_PART_ORDER
-
NO_SUCH_UPLOAD_MULTIPART
-
ENTITY_TOO_SMALL
-
NO_SUCH_BUCKET
-
NO_SUCH_LIFECYCLE_CONFIGURATION
-
NO_SUCH_KEY
-
NOT_MODIFIED
-
PRECONDITION_FAILED
-
BUCKET_NOT_EMPTY
-
INVALID_BUCKET_NAME
-
BUCKET_ALREADY_EXISTS
-
BUCKET_ALREADY_OWNED_BY_YOU
-
NOT_FOUND_BUCKET_OBJECT_LOCK
-
NOT_FOUND_OBJECT_LOCK
-
INVALID_REQUEST_RETAINDATE
-
INVALID_REQUEST_MAXKEYS
-
INVALID_REQUEST_ENCODINGTYPE
-
BAD_REQUEST_MD5
-
BAD_REQUEST_CONTENT
-
-
Constructor Details
-
S3Exception
Creates a new S3Exception to be mapped as anErrorResponse.- Parameters:
status- The Error Status.code- The Error Code.message- The Error Message.
-
-
Method Details
-
getStatus
public int getStatus() -
getCode
-
getMessage
- Overrides:
getMessagein classThrowable
-