raise/7 is an Erlang function exported by "age_system" module. The main purpose of this function is to unify the way of raising and reporting exceptions and other issues in your application. It fully depends on the context you're using this funtion for, however, the result is prepared for reporting in accordance with requirements stipulated by RFC 5424. So, how it works? 1)It consolidates the Erlang's standard error types with Syslog's severity and facility types with one particular message. 2)It handles also the Stacktrace handled in your App as a list of stack items. However, if stack is not provided as a list of tuples then it is considered as undefined. You can use this accordingly. 3)It describes the context of the issue with additional reason, severity and facility descriptors. |
|
|