public class OnPremiseErrorContent extends Object implements AlfrescoErrorContent
AlfrescoErrorContent
. It transforms JSON error content from an
Alfresco Server 3.4 or less into an object.Constructor and Description |
---|
OnPremiseErrorContent() |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Gets the HTTP Error code.
|
String |
getException()
Gets the exception.
|
String |
getMessage()
Gets the main message from the error.
|
String |
getStackTrace()
Gets the stack trace associated to the exception.
|
static OnPremiseErrorContent |
parseJson(String errorContentValue)
Parses the json.
|
public static OnPremiseErrorContent parseJson(String errorContentValue)
errorContentValue
- the error content valuepublic int getCode()
getCode
in interface AlfrescoErrorContent
public String getMessage()
getMessage
in interface AlfrescoErrorContent
public String getException()
public String getStackTrace()
getStackTrace
in interface AlfrescoErrorContent
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.