Package com.microsoft.graph.http
Class GraphFatalServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.microsoft.graph.core.ClientException
com.microsoft.graph.http.GraphServiceException
com.microsoft.graph.http.GraphFatalServiceException
- All Implemented Interfaces:
Serializable
An unexpected exception from the Graph service
- See Also:
-
Field Summary
Fields inherited from class com.microsoft.graph.http.GraphServiceException
INTERNAL_SERVER_ERROR, MAX_BREVITY_LENGTH, MAX_BYTE_COUNT_BEFORE_TRUNCATION, NEW_LINE, TRUNCATION_MARKER -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGraphFatalServiceException(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 TypeMethodDescriptiongetMessage(boolean verbose) Gets the message for this exceptionMethods inherited from class com.microsoft.graph.http.GraphServiceException
createFromResponse, createFromResponse, getError, getMessage, getMethod, getRequestHeaders, getResponseCode, getResponseHeaders, getResponseHeadersAsMapStringString, getResponseMessage, getServiceError, getUrlMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GraphFatalServiceException
protected GraphFatalServiceException(@Nonnull String method, @Nonnull String url, @Nonnull List<String> requestHeaders, @Nullable String requestBody, int responseCode, @Nonnull String responseMessage, @Nonnull List<String> responseHeaders, @Nullable GraphErrorResponse error, boolean verbose) Create a fatal Graph service exception- Parameters:
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 verbosely
-
-
Method Details
-
getMessage
Description copied from class:GraphServiceExceptionGets the message for this exception- Overrides:
getMessagein classGraphServiceException- Parameters:
verbose- if the message should be brief or more verbose- Returns:
- the message.
-