Поделиться через


GraphFatalServiceException Class

public class GraphFatalServiceException
extends GraphServiceException

An unexpected exception from the Graph service

Constructor Summary

Modifier Constructor Description
protected GraphFatalServiceException(String method, String url, List<String> requestHeaders, String requestBody, int responseCode, String responseMessage, List<String> responseHeaders, GraphErrorResponse error, boolean verbose)

Create a fatal Graph service exception

Method Summary

Modifier and Type Method and Description
java.lang.String getMessage(boolean verbose)

Gets the message for this exception

Methods inherited from GraphServiceException

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Methods inherited from java.lang.Throwable

java.lang.Throwable.addSuppressed java.lang.Throwable.fillInStackTrace java.lang.Throwable.getCause java.lang.Throwable.getLocalizedMessage java.lang.Throwable.getStackTrace java.lang.Throwable.getSuppressed java.lang.Throwable.initCause java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.setStackTrace java.lang.Throwable.toString

Constructor Details

GraphFatalServiceException

protected GraphFatalServiceException(String method, String url, List requestHeaders, String requestBody, int responseCode, String responseMessage, List responseHeaders, GraphErrorResponse error, boolean verbose)

Create a fatal Graph service exception

Parameters:

method - the method that caused the exception
url - the URL
requestHeaders - the request headers
requestBody - the request body
responseCode - the response code
responseMessage - the response message
responseHeaders - the response headers
error - the error response if available
verbose - whether or not to log verbosely

Method Details

getMessage

public String getMessage(boolean verbose)

Gets the message for this exception

Overrides:

GraphFatalServiceException.getMessage(boolean verbose)

Parameters:

verbose

Applies to