public class GoodDataRestException extends GoodDataException
| Constructor and Description |
|---|
GoodDataRestException(int statusCode,
String requestId,
String statusText,
GdcError error)
Construct a GoodDataRestException with specified details.
|
GoodDataRestException(int statusCode,
String requestId,
String message,
String component,
String errorClass)
Construct a GoodDataRestException with specified details.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getComponent()
Get the GoodData component where error occurred
|
String |
getErrorClass()
Get the class of the error
|
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
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic GoodDataRestException(int statusCode,
String requestId,
String message,
String component,
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,
String requestId,
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 String getRequestId()
public String getComponent()
public String getErrorClass()
Copyright © 2014. All Rights Reserved.