BlueHeron.ErrorCode (blue_heron v0.2.1) View Source

Defines all error codes and functions to map between error code and name.

When a command fails, or an LMP, LL, or AMP message needs to indicate a failure, error codes are used to indicate the reason for the error. Error codes have a size of one octet.

Reference: Version 5.0, Vol 2, Part D, 1

Link to this section Summary

Link to this section Functions


to_atom(non_neg_integer()) :: atom()


to_code(non_neg_integer() | atom()) :: non_neg_integer() | :error


to_code!(non_neg_integer() | atom()) :: non_neg_integer()


to_string(atom()) :: String.t() | :error