snmpa_error_report(3)
π NAME π
snmpa_error_report β bestie, it's the behaviour module for reporting SNMP agent errors π¨
Like, the manual name is snmpa_error_report(3) and it lives under the Erlang Module Definition section, just so you know where you are π
β¨ DESCRIPTION β¨
Okay so here's the vibe: this module defines the behaviour of the agent error reporting. That means if you want your module to be a snmpa_error_report-compliant girlypop, it must export these two functions:
config_err/2user_err/2
That's it, that's the whole personality test π No cap β if you don't export both, you're not compliant, periodt.
The semantics of them and their exact signatures? All explained below, bestie, keep reading π«Ά
πΈ CALLBACKS πΈ
π§ config_err(Format, Args)
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). So it's giving very much "standard Erlang format string plus args" energy, iykyk.
π user_err(Format, Args)
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). Same deal as above, iconic and consistent β¨
π«Ά Friendly reminder: both of these callbacks take exactly the args shown βFormatandArgs, no more, no less. Don't freestyle the signature, bestie.
And that's the whole page, no notes π
This one's from Ericsson AB, and it's part of snmp version 5.20.5 β slay, go forth and report your errors responsibly ππ
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms