1snmpa_error_report(3) Erlang Module Definition snmpa_error_report(3)
2
3
4
6 snmpa_error_report - Behaviour module for reporting SNMP agent errors
7
9 This module defines the behaviour of the agent error reporting. A
10 snmpa_error_report compliant module must export the following func‐
11 tions:
12
13 * config_err/2
14
15 * user_err/2
16
17 The semantics of them and their exact signatures are explained below.
18
20 config_err(Format, Args) -> void()
21
22 Types:
23
24 Format = string()
25 Args = list()
26
27 The function is called if an error occurs during the configura‐
28 tion phase, for example if a syntax error is found in a configu‐
29 ration file.
30
31 Format and Args are as in io:format(Format, Args).
32
33 user_err(Format, Args) -> void()
34
35 Types:
36
37 Format = string()
38 Args = list()
39
40 The function is called if a user related error occurs at run-
41 time, for example if a user defined instrumentation function
42 returns erroneous.
43
44 Format and Args are as in io:format(Format, Args).
45
46
47
48Ericsson AB snmp 5.8 snmpa_error_report(3)