public class ApiError
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ApiError.Code
API error codes.
|
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
ApiError() |
ApiError(int status,
ApiError.Code code,
java.lang.String message) |
ApiError(int status,
ApiError.Code code,
java.lang.String message,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
ApiError.Code |
getCode() |
java.lang.String |
getDescription() |
java.lang.String |
getMessage() |
int |
getStatus() |
ApiError |
setCode(ApiError.Code code) |
ApiError |
setDescription(java.lang.String description) |
ApiError |
setMessage(java.lang.String message) |
void |
setStatus(int status) |
java.lang.String |
toString() |
public static final long serialVersionUID
public ApiError()
public ApiError(int status, ApiError.Code code, java.lang.String message)
public ApiError(int status, ApiError.Code code, java.lang.String message, java.lang.String description)
public ApiError.Code getCode()
public ApiError setCode(ApiError.Code code)
public int getStatus()
public void setStatus(int status)
public java.lang.String getMessage()
public ApiError setMessage(java.lang.String message)
public java.lang.String getDescription()
public ApiError setDescription(java.lang.String description)
public java.lang.String toString()
toString
in class java.lang.Object