public class OAuthErrorContent extends Object implements AlfrescoErrorContent
AlfrescoErrorContent
. It transforms HTTP OAuth error response
associated into an object.Constructor and Description |
---|
OAuthErrorContent() |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Gets the HTTP Error code.
|
String |
getDescription()
Gets the description.
|
String |
getMessage()
Gets the main message from the error.
|
String |
getStackTrace()
Gets the stack trace associated to the exception.
|
static OAuthErrorContent |
parseJson(String errorContentValue)
Parses the json exception response and try to retrieve essential values.
|
public static OAuthErrorContent parseJson(String errorContentValue)
errorContentValue
- the raw data from the HTTP request.public int getCode()
getCode
in interface AlfrescoErrorContent
public String getMessage()
getMessage
in interface AlfrescoErrorContent
public String getStackTrace()
getStackTrace
in interface AlfrescoErrorContent
public String getDescription()
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.