1snmpa_error_io(3)          Erlang Module Definition          snmpa_error_io(3)
2
3
4

NAME

6       snmpa_error_io - Functions for Reporting SNMP Errors on stdio
7

DESCRIPTION

9       The  module  snmpa_error_io  implements the snmp_error_report behaviour
10       (see snmpa_error_report) containing two callback  functions  which  are
11       called in order to report SNMP errors.
12
13       This  module  provides  a  simple  mechanism for reporting SNMP errors.
14       Errors are written to stdout using the io module. It is provided as  an
15       simple example.
16
17       This module needs to be explicitly configured, see snmpa_error and con‐
18       figuration parameters.
19

EXPORTS

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.8                  snmpa_error_io(3)
Impressum