public abstract class AlfrescoException extends RuntimeException implements ErrorCodeRegistry
ACTIVITISTREAM_GENERIC, ACTIVITISTREAM_NOT_FOUND, COMMENT_GENERIC, COMMENT_NO_COMMENT, DOCFOLDER_GENERIC, DOCFOLDER_NO_THUMBNAIL, DOCFOLDER_NODE_ALREADY_EXIST, DOCFOLDER_PARENT_NOT_FOUND, DOCFOLDER_PERMISSIONS, DOCFOLDER_WRONG_CONVERT, DOCFOLDER_WRONG_NODE_TYPE, GENERAL_ACCESS_DENIED, GENERAL_GENERIC, GENERAL_HTTP_RESP, GENERAL_IO, GENERAL_NODE_NOT_FOUND, PARSING_ENTRIES_TAG_MISSED, PARSING_ENTRY_TAG_MISSED, PARSING_GENERIC, PARSING_JSONDATA_EMPTY, PERSON_AVATAR_NOT_FOUND, PERSON_GENERIC, PERSON_NOT_FOUND, RATING_GENERIC, RATING_NOT_FOUND, SEARCH_GENERIC, SESSION_ACCESS_TOKEN_EXPIRED, SESSION_API_KEYS_INVALID, SESSION_AUTH_CODE_INVALID, SESSION_AUTHENTICATOR, SESSION_GENERIC, SESSION_INVALID_REFRESH_TOKEN, SESSION_NO_NETWORK_FOUND, SESSION_NO_REPOSITORY, SESSION_REFRESH_TOKEN_EXPIRED, SESSION_SERVICEREGISTRY, SESSION_UNAUTHORIZED, SITE_ALREADY_MEMBER, SITE_DOCLIB_NOTFOUND, SITE_GENERIC, SITE_LAST_MANAGER, SITE_NOTFOUND, TAGGING_GENERIC, TAGGING_TAG_NOT_FOUND, WORKFLOW_GENERIC
Modifier | Constructor and Description |
---|---|
|
AlfrescoException(int errorCode,
AlfrescoErrorContent errorContent)
Instantiates a new alfresco exception.
|
|
AlfrescoException(int errorCode,
String message)
Instantiates a new alfresco exception.
|
protected |
AlfrescoException(int errorCode,
Throwable throwable)
Default constructor.
|
protected |
AlfrescoException(String detailsMessage)
Default constructor.
|
protected |
AlfrescoException(String message,
String errorContent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AlfrescoErrorContent |
getAlfrescoErrorContent()
Gets the alfresco error content associated to the exception.
|
int |
getErrorCode()
Error code send by the API.
|
String |
getErrorContent()
Returns the content of the error page sent by the server.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected AlfrescoException(String detailsMessage)
detailsMessage
- the details message from the exceptionprotected AlfrescoException(int errorCode, Throwable throwable)
errorCode
- Mobile SDK error codethrowable
- Associated exceptionprotected AlfrescoException(String message, String errorContent)
message
- error messageerrorContent
- error page contentpublic AlfrescoException(int errorCode, String message)
errorCode
- Mobile SDK error codemessage
- Specific message associated to this error.public AlfrescoException(int errorCode, AlfrescoErrorContent errorContent)
errorCode
- Mobile SDK codeerrorContent
- Information from server side.public String getErrorContent()
null
if the server
didn't send text content.public int getErrorCode()
public AlfrescoErrorContent getAlfrescoErrorContent()
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.