public class GraphError
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
code |
GraphInnerError |
innererror |
java.lang.String |
message |
| Constructor and Description |
|---|
GraphError() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isError(GraphErrorCodes expectedCode)
Determine if the given error code is the one that is expected
|
protected java.lang.String |
transformErrorCodeCase(java.lang.String original)
Transforms the text error code into the format expected by the value of the enum
|
@SerializedName(value="message") @Expose public java.lang.String message
@SerializedName(value="code") @Expose public java.lang.String code
@SerializedName(value="innererror") public GraphInnerError innererror
public boolean isError(GraphErrorCodes expectedCode)
expectedCode - the expected error codeprotected java.lang.String transformErrorCodeCase(java.lang.String original)
original - original lowser Camel cased error code