nerr_match(3)

nerr_match3

Walk the neoerr chain for a matching error (clearsilver)

Usage

#include <util/neo_err.h>
int nerr_match (NEOERR *err, NERR_TYPE type);

Arguments

err - the NEOERR that has an error.
type - the NEOERR type, as registered with nerr_register

Overview

nerr_match is used to walk the NEOERR chain and match the error against a specific error type. In exception parlance, this would be the equivalent of "catch". Typically, you can just compare a NEOERR against STATUS_OK or just test for true if you are checking for any error.

Releases

10 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0–13

From clearsilver-dev 0.10.5-6+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.