---
name: "nerr_match"
section: "3"
platform: "linux"
package: "clearsilver-dev"
version: "0.10.5-6+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nerr_match"
---

# nerr\_match(3)

walk the NEOERR chain for a matching error (clearsilver)

## NAME

nerr\_match - walk the NEOERR chain for a matching error (clearsilver)

## SYNOPSIS

```
#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

## 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.

## SEE ALSO

[**nerr\_error\_traceback**(3)](/nerr_error_traceback/3.md), [**nerr\_pass**(3)](/nerr_pass/3.md), [**nerr\_error\_string**(3)](/nerr_error_string/3.md), **defined**(3), [**nerr\_pass\_ctx**(3)](/nerr_pass_ctx/3.md), **nerr\_passf**(3), [**nerr\_init**(3)](/nerr_init/3.md), [**nerr\_match**(3)](/nerr_match/3.md), [**nerr\_log\_error**(3)](/nerr_log_error/3.md), [**nerr\_ignore**(3)](/nerr_ignore/3.md), [**nerr\_register**(3)](/nerr_register/3.md), **nerr\_handle**
