public class ErrorResponse extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
bucketName |
protected ErrorCode |
errorCode |
protected String |
hostId |
protected String |
message |
protected String |
objectName |
protected String |
requestId |
protected String |
resource |
| Constructor and Description |
|---|
ErrorResponse() |
ErrorResponse(ErrorCode errorCode,
String bucketName,
String objectName,
String resource,
String requestId,
String hostId)
Constructs a new ErrorResponse object with error code, bucket name, object name, resource,
request ID and host ID.
|
| Modifier and Type | Method and Description |
|---|---|
String |
bucketName()
Returns bucket name.
|
ErrorCode |
errorCode()
Returns error code.
|
String |
hostId()
Returns host ID.
|
String |
message()
Returns error message.
|
String |
objectName()
Returns object name.
|
String |
requestId()
Returns request ID.
|
String |
resource()
Returns resource.
|
String |
toString()
Returns string representation of this object.
|
protected ErrorCode errorCode
protected String message
protected String bucketName
protected String objectName
protected String resource
protected String requestId
protected String hostId
public ErrorCode errorCode()
public String message()
public String bucketName()
public String objectName()
public String hostId()
public String requestId()
public String resource()