public class GraphFatalServiceException extends GraphServiceException
INTERNAL_SERVER_ERROR, MAX_BREVITY_LENGTH, MAX_BYTE_COUNT_BEFORE_TRUNCATION, NEW_LINE, TRUNCATION_MARKER| Modifier | Constructor and Description |
|---|---|
protected |
GraphFatalServiceException(java.lang.String method,
java.lang.String url,
java.util.List<java.lang.String> requestHeaders,
java.lang.String requestBody,
int responseCode,
java.lang.String responseMessage,
java.util.List<java.lang.String> responseHeaders,
GraphErrorResponse error,
boolean verbose)
Create a fatal Graph service exception
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessage(boolean verbose)
Gets the message for this exception
|
createFromConnection, createFromConnection, getError, getMessage, getMethod, getRequestHeaders, getResponseCode, getResponseHeaders, getResponseMessage, getServiceError, getUrlprotected GraphFatalServiceException(java.lang.String method,
java.lang.String url,
java.util.List<java.lang.String> requestHeaders,
java.lang.String requestBody,
int responseCode,
java.lang.String responseMessage,
java.util.List<java.lang.String> responseHeaders,
GraphErrorResponse error,
boolean verbose)
method - the method that caused the exceptionurl - the URLrequestHeaders - the request headersrequestBody - the request bodyresponseCode - the response coderesponseMessage - the response messageresponseHeaders - the response headerserror - the error response if availableverbose - whether or not to log verboselypublic java.lang.String getMessage(boolean verbose)
GraphServiceExceptiongetMessage in class GraphServiceExceptionverbose - if the message should be brief or more verbose