Skip to main content

Module error

Module error 

Source
Expand description

Type-erased error handling for callback boundaries.

User-provided callbacks (objective functions, detection functions, Python callables) can fail with error types that lox-core cannot name. LoxError erases those types so they can travel through solvers and detectors, while find_source recovers them at the boundary via downcasting.

Structs§

LoxError
A type-erased error carrying an arbitrary failure across an abstraction boundary.

Functions§

find_source
Searches err and its source chain for an error of type E.

Type Aliases§

BoxedError
A boxed, type-erased error.