liveBook · Manning

Error value

As explained in Systems Programming with Zig

An error value is a value representing a failure condition that a Zig operation or function can return.

An error value represents a failure that a Zig operation or function can return. Zig requires errors and return values to be handled or explicitly discarded, and functions can declare possible errors for compiler checking. section 1.3.1

How Systems Programming with Zig covers it

How deep it goes
Defines failure values and requires handling or explicit discard, while describing compiler checks over declared error sets.
What you can do after
Apply explicit error handling by handling or deliberately discarding errors and return values.
How it connects
Connects error values with return values, error codes, and exceptions.

Also explained in

Compare how 2 books explain error value →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Systems Programming with Zig. The section links point to the parts of the book it draws on.