public class S3Exception extends RuntimeException
RuntimeException to communicate general S3 errors. These are handled by com.adobe.testing.s3mock.util.S3ExceptionResolver, mapped to ErrorResponse and serialized.| Constructor and Description |
|---|
S3Exception(int status,
String code,
String message)
Creates a new S3Exception to be mapped as an
ErrorResponse. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
String |
getMessage() |
int |
getStatus() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic S3Exception(int status,
String code,
String message)
ErrorResponse.status - The Error Status.code - The Error Code.message - The Error Message.public int getStatus()
public String getCode()
public String getMessage()
getMessage in class ThrowableCopyright © 2019 Adobe. All rights reserved.