GraphError Class
- java.
lang. Object - com.
microsoft. graph. http. GraphError
- com.
public class GraphError
Represents an error returned by the service
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| java.lang.String |
code
The error code |
|
Graph |
innererror
The inner error |
| java.lang.String |
message
The error message |
Constructor Summary
| Constructor | Description | |
|---|---|---|
| GraphError() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
final
Graph |
copy()
Makes a deep copy of this Graph |
| boolean |
isError(GraphErrorCodes expectedCode)
Determine if the given error code is the one that is expected |
| protected java.lang.String |
transformErrorCodeCase(String original)
Transforms the text error code into the format expected by the value of the enum |
Methods inherited from java.lang.Object
Field Details
code
public String code
The error code
innererror
public GraphInnerError innererror
The inner error
message
public String message
The error message
Constructor Details
GraphError
public GraphError()
Method Details
copy
public final GraphError copy()
Makes a deep copy of this GraphError
Returns:
isError
public boolean isError(GraphErrorCodes expectedCode)
Determine if the given error code is the one that is expected
Parameters:
Returns:
transformErrorCodeCase
protected String transformErrorCodeCase(String original)
Transforms the text error code into the format expected by the value of the enum
Parameters:
Returns: