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
| Async Method | exception |
Handle an exception based on the current kernel context. |
@abstractmethod
async def exception(self, exception: BaseException, request: Request | TransportAdapter | None = None) -> Response | None:
(source)
¶
overridden in
orionis.failure.CatchHandle 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. |