iserr
Iserr is a term used in software development to describe a predicate, macro, or function intended to determine whether a given value encodes an error condition. It is not a formal language feature, but a naming convention found in various codebases to improve readability when error signaling uses special values rather than exceptions.
Usage patterns vary by language. In C and C-like code, an iserr macro may test for negative
In languages that use exceptions, iserr-style checks are less common, but a function might still return an
Benefits of an iserr pattern include explicit, local error checks and easier control flow in function compositions.
See also: error handling, error codes, errno, exception handling, error objects.