logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nerr_match - walk the NEOERR chain for a matching error (clearsilver)

Arguments

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

Description

       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.

Name

       nerr_match - walk the NEOERR chain for a matching error (clearsilver)

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                                     nerr_match(3)

Synopsis

       #include <util/neo_err.h>

       int nerr_match (NEOERR *err, NERR_TYPE type);

See Also