General purpose toolkit with advanced system functions for developing and controlling Erlang processes and AGE's resources. |
-define(AGE_RESULT(Type, Data), {?AGE, Type, Data}). -define(AGE_ERROR(Message), ?AGE_RESULT(error, Message)). -define(AGE_WARNING(Message), ?AGE_RESULT(warning, Message)). -define(AGE_CALL_REQUEST(Data), ?AGE_CALL_REQUEST(undefined, Data)). -define(AGE_CALL_REQUEST(Type, Data), {?AGE, self(), Type, Data}). -define(AGE_CALL_RESPONSE(Data), {?AGE, _From, _Type, Data}). -define(AGE_CALL_RESPONSE(Type, Data), {?AGE, _From, Type, Data}). -define(AGE_CALL_TIMEOUT, 5000). |
-type age_exception_type() :: error | exit | throw. -type age_exception_severity() :: emergency | alert | critical | error | warning | notice | info | debug. -record(age_exception, { id = age_tools:gen_uid(uuid) :: list(), type = error :: age_exception_type(), timestamp = age_tools:now_to_unix() :: integer(), message :: any(), reason :: any(), severity = error :: age_exception_severity(), facility :: any(), stack :: undefined | list(), owner = self() :: pid() | atom(), node = age_net:get_node() :: age_node() }). |