nerr_match(3)
π nerr_match(3) β bestie, weβre catching an error π
This is the nerr_match(3) page from util/neo_err.h. Strap in, itβs a short one and it totally slays.
πΈ NAME πΈ
nerr_match π
β¨ SYNOPSIS β¨
#include <util/neo_err.h>
int nerr_match (NEOERR *err, NERR_TYPE type);
π ARGUMENTS π
errβ theNEOERRthat has an error. Yes, that one.typeβ theNEOERRtype, as registered withnerr_register.
π¦ DESCRIPTION π¦
okay so nerr_match is the bestie that walks the NEOERR chain and checks the error against one specific error type. In exception-speak? Itβs literally the equivalent of "catch" β periodt.
Most of the time you can just compare a NEOERR against STATUS_OK, or just test for true if youβre checking for any error at all. Easy.
π₯ SEE ALSO π₯
nerr_error_traceback(3)nerr_pass(3)nerr_error_string(3)defined(3)nerr_pass_ctx(3)nerr_passf(3)nerr_init(3)nerr_match(3)nerr_log_error(3)nerr_ignore(3)nerr_register(3)nerr_handle
π ClearSilver β’ 12 July 2007 π
π¦ where this page comes from
- epel 10: clearsilver 0.10.5-80.el10_2 Β· Apache-1.1
- epel 9: clearsilver 0.10.5-74.el9 Β· Apache-1.1
- fedora 43: clearsilver 0.10.5-80.fc43 Β· Apache-1.1
- fedora 44: clearsilver 0.10.5-82.fc44 Β· Apache-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms