ExCEP. Common. ErrorCode
(ex_cep v0.1.1)
Copy Markdown
Normative error codes defined in Appendix A (Table A.1) of CSG CEP TS2.2.
Codes 0..10 are standard protocol error codes; codes > 100 are user-defined.
Summary
Functions
Decodes a protocol error code string or integer into a typed atom or {:custom, code}.
Returns {en_desc, zh_desc} for a standard error code.
Encodes an error code atom, integer, or string into its protocol string form.
Types
@type t() :: :no_error | :model_no_exist | :device_no_exist | :data_no_exist | :file_no_exist | :control_type_error | :set_id_error | :parse_cmd_error | :exec_cmd_error | :file_format_error | :data_format_error | {:custom, String.t()}
Functions
Decodes a protocol error code string or integer into a typed atom or {:custom, code}.
Returns {en_desc, zh_desc} for a standard error code.
Encodes an error code atom, integer, or string into its protocol string form.