errnolike
Errnolike is a term used in software engineering to describe values, constructs, or signaling patterns that imitate errno-style error reporting without invoking a true system error. In practice, errnolike data encodes an error code and an accompanying message, and is carried as part of normal program flow, such as in return values, result objects, or mock responses. The idea is to simulate error conditions in a controlled, deterministic way, enabling thorough testing of error handling paths and interoperability between components or languages that differ in their error conventions.
Key characteristics include a defined mapping between numeric codes and human-readable messages; portability across languages; and
In practice, an errnolike signal may appear as a negative return code alongside a separate error context,
See also: errno, error handling, mock objects, test doubles.