Snex.Error exception (Snex v0.1.0)

View Source

Domain-specific errors returned by Snex.

Summary

Types

The error code indicating a key is not found in the Snex.env/0.

The error code indicating an environment referenced by the passed in Snex.env/0 is not found in the Python interpreter that ran the command.

Error codes for all errors.

The error code for an internal error of Snex.

The error code for a runtime error.

t()

The type of Snex.Error.

Types

env_key_not_found()

@type env_key_not_found() :: :env_key_not_found

The error code indicating a key is not found in the Snex.env/0.

env_not_found()

@type env_not_found() :: :env_not_found

The error code indicating an environment referenced by the passed in Snex.env/0 is not found in the Python interpreter that ran the command.

error_code()

Error codes for all errors.

internal_error()

@type internal_error() :: :internal_error

The error code for an internal error of Snex.

python_runtime_error()

@type python_runtime_error() :: :python_runtime_error

The error code for a runtime error.

t()

@type t() :: %Snex.Error{
  __exception__: true,
  code: error_code(),
  reason: String.t() | term()
}

The type of Snex.Error.