---
name: "snmpa_error_report"
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_report"
---

# snmpa\_error\_report(3erl)

Behaviour module for reporting SNMP agent errors

## NAME

snmpa\_error\_report - Behaviour module for reporting SNMP agent errors

## DESCRIPTION

This module defines the behaviour of the agent error reporting. A *snmpa\_error\_report* compliant module must export the following functions:

- \*

  config\_err/2

- \*

  user\_err/2

The semantics of them and their exact signatures are explained below.

## 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)*.
