# `NebulaGraphEx.Error.Code`
[🔗](https://github.com/VChain/nebula_graph_ex/blob/v0.1.8/lib/nebula_graph_ex/error.ex#L108)

Mapping between NebulaGraph integer error codes and Elixir atoms.

See `priv/thrift/common.thrift` `ErrorCode` enum for the full list.

# `from_int`

```elixir
@spec from_int(integer()) :: atom()
```

Converts a raw integer error code to an atom. Returns `:e_unknown` for unrecognised codes.

# `succeeded?`

```elixir
@spec succeeded?(atom() | integer()) :: boolean()
```

Returns `true` if the code represents a successful operation.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
