public class GoodDataRestException extends GoodDataException
| Constructor and Description |
|---|
GoodDataRestException(int statusCode,
java.lang.String requestId,
java.lang.String statusText,
GdcError error)
Construct a GoodDataRestException with specified details.
|
GoodDataRestException(int statusCode,
java.lang.String requestId,
java.lang.String message,
java.lang.String component,
java.lang.String errorClass)
Construct a GoodDataRestException with specified details.
|
GoodDataRestException(int statusCode,
java.lang.String requestId,
java.lang.String message,
java.lang.String component,
java.lang.String errorClass,
java.lang.String errorCode)
Construct a GoodDataRestException with specified details.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComponent()
Get the GoodData component where error occurred
|
java.lang.String |
getErrorClass()
Get the class of the error
|
java.lang.String |
getErrorCode()
Get the code of the error
|
java.lang.String |
getRequestId()
Get the GoodData request ID (from header) of the problematic REST API call response
|
int |
getStatusCode()
Get the HTTP status code of the problematic REST API call response
|
java.lang.String |
getText()
Text message describing the error
|
public GoodDataRestException(int statusCode,
java.lang.String requestId,
java.lang.String message,
java.lang.String component,
java.lang.String errorClass,
java.lang.String errorCode)
statusCode - the HTTP status code of the responserequestId - the GoodData request ID (from header)message - the detail messagecomponent - the GoodData component where error occurrederrorClass - the class of the errorerrorCode - the code of the errorpublic GoodDataRestException(int statusCode,
java.lang.String requestId,
java.lang.String message,
java.lang.String component,
java.lang.String errorClass)
statusCode - the HTTP status code of the responserequestId - the GoodData request ID (from header)message - the detail messagecomponent - the GoodData component where error occurrederrorClass - the class of the errorpublic GoodDataRestException(int statusCode,
java.lang.String requestId,
java.lang.String statusText,
GdcError error)
statusCode - the HTTP status code of the responserequestId - the GoodData request ID (from header)statusText - the HTTP status text of the responseerror - the GoodData REST API error structurepublic int getStatusCode()
public java.lang.String getRequestId()
public java.lang.String getComponent()
public java.lang.String getErrorClass()
public java.lang.String getErrorCode()
public java.lang.String getText()
Copyright © 2016. All Rights Reserved.