Class ErrorInfo
java.lang.Object
org.exoplatform.webconferencing.client.ErrorInfo
Basic error entity.
Created by The eXo Platform SAS
Created by The eXo Platform SAS
- Version:
- $Id: ErrorInfo.java 00000 Apr 20, 2015 pnedonosko $
- Author:
- Peter Nedonosko
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringThe code.static final StringThe Constant CODE_ACCESS_ERROR.static final StringThe Constant CODE_CLIENT_ERROR.static final StringThe Constant CODE_NOT_FOUND_ERROR.static final StringThe Constant CODE_SERVER_ERROR.protected final StringThe message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorInfoaccessError(String message) Access error.asJSON()Error as JSON string.static ErrorInfoclientError(String message) Client error.getCode()Gets the code.Gets the message.static ErrorInfonotFoundError(String message) Not found error.static ErrorInfoserverError(String message) Server error.
-
Field Details
-
CODE_CLIENT_ERROR
The Constant CODE_CLIENT_ERROR.- See Also:
-
CODE_NOT_FOUND_ERROR
The Constant CODE_NOT_FOUND_ERROR.- See Also:
-
CODE_ACCESS_ERROR
The Constant CODE_ACCESS_ERROR.- See Also:
-
CODE_SERVER_ERROR
The Constant CODE_SERVER_ERROR.- See Also:
-
code
The code. -
message
The message.
-
-
Constructor Details
-
ErrorInfo
Instantiates a new error info.- Parameters:
code- the codemessage- the message
-
ErrorInfo
Instantiates a new error info.- Parameters:
message- the message
-
-
Method Details
-
clientError
Client error.- Parameters:
message- the message- Returns:
- the error info
-
notFoundError
Not found error.- Parameters:
message- the message- Returns:
- the error info
-
accessError
Access error.- Parameters:
message- the message- Returns:
- the error info
-
serverError
Server error.- Parameters:
message- the message- Returns:
- the error info
-
getCode
Gets the code.- Returns:
- the code
-
getMessage
Gets the message.- Returns:
- the message
-
asJSON
Error as JSON string.- Returns:
- the string
-