Class GraphFatalServiceException

All Implemented Interfaces:
Serializable

public class GraphFatalServiceException extends GraphServiceException
An unexpected exception from the Graph service
See Also:
Serialized Form
  • 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 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

      @Nullable public String getMessage(boolean verbose)
      Description copied from class: GraphServiceException
      Gets the message for this exception
      Overrides:
      getMessage in class GraphServiceException
      Parameters:
      verbose - if the message should be brief or more verbose
      Returns:
      the message.