public class ErrorInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
code
The code.
|
static String |
CODE_ACCESS_ERROR
The Constant CODE_ACCESS_ERROR.
|
static String |
CODE_CLIENT_ERROR
The Constant CODE_CLIENT_ERROR.
|
static String |
CODE_NOT_FOUND_ERROR
The Constant CODE_NOT_FOUND_ERROR.
|
static String |
CODE_SERVER_ERROR
The Constant CODE_SERVER_ERROR.
|
protected String |
message
The message.
|
| Constructor and Description |
|---|
ErrorInfo(String message)
Instantiates a new error info.
|
ErrorInfo(String code,
String message)
Instantiates a new error info.
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorInfo |
accessError(String message)
Access error.
|
static ErrorInfo |
clientError(String message)
Client error.
|
String |
getCode()
Gets the code.
|
String |
getMessage()
Gets the message.
|
static ErrorInfo |
notFoundError(String message)
Not found error.
|
static ErrorInfo |
serverError(String message)
Server error.
|
public static final String CODE_CLIENT_ERROR
public static final String CODE_NOT_FOUND_ERROR
public static final String CODE_ACCESS_ERROR
public static final String CODE_SERVER_ERROR
protected final String code
protected final String message
public ErrorInfo(String code, String message)
code - the codemessage - the messagepublic ErrorInfo(String message)
message - the messagepublic static ErrorInfo clientError(String message)
message - the messagepublic static ErrorInfo notFoundError(String message)
message - the messagepublic static ErrorInfo accessError(String message)
message - the messagepublic static ErrorInfo serverError(String message)
message - the messagepublic String getCode()
public String getMessage()
Copyright © 2003–2017 eXo Platform SAS. All rights reserved.