ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class Catch(ICatch): (source)

Constructor: Catch(app)

View In Hierarchy

Undocumented

Method __init__ Initialize the Catch handler with the application instance.
Async Method exception Handle an exception based on the current kernel context.
Instance Variable __app Undocumented
Instance Variable __exception_handler Undocumented
Instance Variable __handler_lock Undocumented
def __init__(self, app: IApplication): (source)

Initialize the Catch handler with the application instance.

Parameters
app:IApplicationThe application instance used to resolve required services.
Returns
NoneThis constructor does not return any value.
async def exception(self, exception: BaseException, request: Request | TransportAdapter | None = None) -> Response | None: (source)

Handle an exception based on the current kernel context.

Notes

Determines the context and delegates exception handling accordingly.

Parameters
exception:BaseExceptionThe exception instance to handle.
request:Request | TransportAdapter | None, optionalThe HTTP request or transport adapter associated with the exception.
Returns
None | ResponseThis method performs side effects and may return a Response.
Raises
RuntimeErrorIf the application has no active scope or kernel context.
__app: IApplication = (source)

Undocumented

__exception_handler: IBaseExceptionHandler | None = (source)

Undocumented

__handler_lock = (source)

Undocumented