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
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 |
Undocumented |
| Instance Variable | __handler |
Undocumented |
Initialize the Catch handler with the application instance.
| Parameters | |
app:IApplication | The application instance used to resolve required services. |
| Returns | |
None | This 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:BaseException | The exception instance to handle. |
request:Request | TransportAdapter | None, optional | The HTTP request or transport adapter associated with the exception. |
| Returns | |
None | Response | This method performs side effects and may return a Response. |
| Raises | |
RuntimeError | If the application has no active scope or kernel context. |