1snmpa_error(3) Erlang Module Definition snmpa_error(3)
2
3
4
6 snmpa_error - Functions for Reporting SNMP Errors
7
9 The module snmpa_error contains two callback functions which are called
10 if an error occurs at different times during agent operation. These
11 functions in turn calls the corresponding function in the configured
12 error report module, which implements the actual report functionality.
13
14 Two simple implementation(s) is provided with the toolkit; the modules
15 snmpa_error_logger which is the default and snmpa_error_io.
16
17 The error report module is configured using the directive
18 error_report_mod, see configuration parameters.
19
21 config_err(Format, Args) -> void()
22
23 Types:
24
25 Format = string()
26 Args = list()
27
28 The function is called if an error occurs during the configura‐
29 tion phase, for example if a syntax error is found in a configu‐
30 ration file.
31
32 Format and Args are as in io:format(Format, Args).
33
34 user_err(Format, Args) -> void()
35
36 Types:
37
38 Format = string()
39 Args = list()
40
41 The function is called if a user related error occurs at run-
42 time, for example if a user defined instrumentation function
43 returns erroneous.
44
45 Format and Args are as in io:format(Format, Args).
46
47
48
49Ericsson AB snmp 5.5 snmpa_error(3)