public class ErrorResponse extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
bucketName |
protected String |
code |
protected String |
hostId |
protected String |
message |
protected String |
objectName |
protected String |
requestId |
protected String |
resource |
| Modifier | Constructor and Description |
|---|---|
protected |
ErrorResponse() |
|
ErrorResponse(String code,
String message,
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.
|
String |
code()
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.
|
protected String |
stringify() |
String |
toString() |
protected String code
protected String message
protected String bucketName
protected String objectName
protected String resource
protected String requestId
protected String hostId
protected ErrorResponse()
public ErrorResponse(@Nonnull String code, @Nullable String message, @Nullable String bucketName, @Nullable String objectName, @Nullable String resource, @Nullable String requestId, @Nullable String hostId)
public String code()
public String message()
public String bucketName()
public String objectName()
public String hostId()
public String requestId()
public String resource()
protected String stringify()