Defines a function-based adapter error handler.
This overload is used for plain function handlers that handle specific adapter errors.
The function to handle the adapter error.
Metadata describing when to apply the handler (e.g. platform, alias, error types).
A blueprint partial containing registration middleware.
Defines a factory-based adapter error handler.
This overload allows defining an adapter error handler as a factory function.
A factory that returns the adapter error handler function.
Metadata describing when to apply the handler (e.g. platform, alias, error types).
A blueprint partial containing registration middleware.
Defines a class-based adapter error handler.
This overload allows defining an adapter error handler as a class.
A class that implements the adapter error handler logic.
Metadata describing when to apply the handler (e.g. platform, alias, error types).
A blueprint partial containing registration middleware.
Registers an adapter error handler in the blueprint with appropriate metadata.
This function creates and injects a middleware into the blueprint that registers an error handler for a specific adapter based on platform or alias.
Param: module
The handler function, factory, or class.
Param: options
Options including
platform,adapterAlias, anderrortype(s) to handle.Returns
A Stone.js blueprint fragment that adds the registration middleware.