nerr_match(3)

πŸ“¦
version 0.10.5 Β· 2 versions
, in epel 10, epel 9, fedora 43, fedora 44

πŸ’– 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 β€” the NEOERR that has an error. Yes, that one.
  • type β€” the NEOERR type, as registered with nerr_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 πŸ”₯


πŸ’– ClearSilver β€’ 12 July 2007 πŸ’–

πŸ“¦ where this page comes from