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 ICatch(ABC): (source)

Known subclasses: orionis.failure.Catch

View In Hierarchy

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.Catch

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.