Skip to main content

Module error

Module error 

Source
Expand description

Kernel error codes and constructors.

The kernel never panics and never returns a bare string: every failure is a KernelError with one of the codes in code, so the host can branch on it.

Modules§

code
The closed set of kernel error codes.

Functions§

err
Build a KernelError with neither seq nor step_id.
err_seq
Build a KernelError tagged with the seq it concerns.
err_step
Build a KernelError tagged with the step it concerns.

Type Aliases§

KResult
Result alias every kernel function returns; the error is always a KernelError.