Package com.microsoft.graph.http
Class GraphError
java.lang.Object
com.microsoft.graph.http.GraphError
Represents an error returned by the service
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe error codeThe inner errorThe error message -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal GraphErrorcopy()Makes a deep copy of this GraphErrorbooleanisError(GraphErrorCodes expectedCode) Determine if the given error code is the one that is expectedprotected StringtransformErrorCodeCase(String original) Transforms the text error code into the format expected by the value of the enum
-
Field Details
-
message
The error message -
code
The error code -
innererror
The inner error
-
-
Constructor Details
-
GraphError
public GraphError()
-
-
Method Details
-
isError
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
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
Makes a deep copy of this GraphError- Returns:
- The copy of this GraphError
-