public class S3Error extends Object
Constructor and Description |
---|
S3Error()
Creates an
S3Error . |
S3Error(String resource,
S3ErrorCode code)
Creates a new
Error . |
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
String |
getMessage() |
String |
getRequestId() |
String |
getResource() |
void |
setCode(String code) |
void |
setMessage(String message) |
void |
setRequestId(String requestId) |
void |
setResource(String resource) |
public S3Error()
S3Error
.
This is needed for S3Error
to be encoded into XML, see https://stackoverflow.com/
questions/26014184/jersey-returns-500-when-trying-to-return-an-xml-response for details.public S3Error(String resource, S3ErrorCode code)
Error
.resource
- the resource (bucket or object key) where the error happenscode
- the error codepublic String getCode()
public String getMessage()
public String getRequestId()
public String getResource()
public void setCode(String code)
code
- the error code to setpublic void setMessage(String message)
message
- the error message to setpublic void setRequestId(String requestId)
requestId
- the request ID to setpublic void setResource(String resource)
resource
- the resource name to setCopyright © 2023. All Rights Reserved.