Class GraphError

java.lang.Object
com.microsoft.graph.http.GraphError

public class GraphError extends Object
Represents an error returned by the service
  • Field Details

    • message

      @SerializedName("message") @Expose @Nullable public String message
      The error message
    • code

      @SerializedName("code") @Expose @Nullable public String code
      The error code
    • innererror

      @SerializedName("innererror") @Nullable public GraphInnerError innererror
      The inner error
  • Constructor Details

    • GraphError

      public GraphError()
  • Method Details

    • isError

      public boolean isError(@Nonnull GraphErrorCodes expectedCode)
      Determine if the given error code is the one that is expected
      Parameters:
      expectedCode - the expected error code
      Returns:
      true if the error code matches, and false if there was no match
    • transformErrorCodeCase

      @Nonnull protected String transformErrorCodeCase(@Nonnull String original)
      Transforms the text error code into the format expected by the value of the enum
      Parameters:
      original - original lowser Camel cased error code
      Returns:
      the resulting upper undescore cased error code
    • copy

      @Nonnull public final GraphError copy()
      Makes a deep copy of this GraphError
      Returns:
      The copy of this GraphError