Defines a function-based error handler.
The error handler function.
The error types and metadata.
A partial StoneBlueprint registering the error handler.
Defines a factory-based error handler.
The factory function that returns an error handler.
The error types and metadata.
A partial StoneBlueprint registering the error handler.
Defines a class-based error handler.
The error handler class.
The error types and metadata.
A partial StoneBlueprint registering the error handler.
Registers a kernel-level error handler in the blueprint.
This utility defines a structured error handler (function, factory, or class) for one or more error types, and adds it to the
stone.kernel.errorHandlersblueprint section.Param: module
The error handler module (function, factory, or class).
Param: options
Metadata defining the error types it handles, and type flags.
Returns
A partial StoneBlueprint with the error handler(s) registered.