---
name: "snmpa_error_io"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:25.2.3+dfsg-1+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/snmpa_error_io"
---

# snmpa\_error\_io(3erl)

Functions for Reporting SNMP Errors on stdio

## NAME

snmpa\_error\_io - Functions for Reporting SNMP Errors on stdio

## DESCRIPTION

The module *snmpa\_error\_io* implements the *snmp\_error\_report* behaviour (see snmpa\_error\_report) containing two callback functions which are called in order to report SNMP errors.

This module provides a simple mechanism for reporting SNMP errors. Errors are written to stdout using the *io* module. It is provided as an simple example.

This module needs to be explicitly configured, see snmpa\_error and configuration parameters.

## EXPORTS

**config\_err(Format, Args) -\> void()**\

Types:

Format = string()\
 Args = list()\

The function is called if an error occurs during the configuration phase, for example if a syntax error is found in a configuration file.

*Format* and *Args* are as in *io:format(Format, Args)*.

**user\_err(Format, Args) -\> void()**\

Types:

Format = string()\
 Args = list()\

The function is called if a user related error occurs at run-time, for example if a user defined instrumentation function returns erroneous.

*Format* and *Args* are as in *io:format(Format, Args)*.
