Represents a NebulaGraph error returned by the server or raised by the client.
Fields
:code— theNebulaGraphEx.Error.Codeatom (e.g.:e_syntax_error):code_int— the raw integer error code from the server:message— human-readable error message string, ornil:category— one of:auth,:query,:connection,:server,:client:statement— the nGQL statement that caused the error, if available
Example
iex> {:error, err} = NebulaGraphEx.Graph.query(conn, "INVALID nGQL HERE")
iex> err.code
:e_syntax_error
iex> err.message
"SyntaxError: syntax error near `nGQL'"