Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_system
get_error_reason/2
Description
get_error_reason/2 is an Erlang function exported by "age_system" module.
This function returns an error description in readable English.
References
None
Parameters
Name
Type
Error
atom()
Error ID.
Default
string()
Optional default string to be returned in case Error is not identified by ID.
Result
Value or Type
Returns an error description when possible.
Code Sample
> age_system:get_error_reason(badarg). "Bad argument. The argument is of wrong data type, or is otherwise badly formed."