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 IBaseExceptionHandler(ABC): (source)
Known subclasses: orionis.failure.base.BaseExceptionHandler
Undocumented
| Async Method | handle |
Render the exception message for CLI output. |
| Async Method | handle |
Handle the exception for HTTP responses. |
| Method | is |
Determine whether the given exception should be ignored. |
| Async Method | report |
Report or log an exception. |
| Method | to |
Convert an exception to a structured Throwable object. |
overridden in
orionis.failure.base.BaseExceptionHandlerRender the exception message for CLI output.
| Parameters | |
exception:BaseException | The exception instance that was caught. |
console:IConsole | The console instance for output. |
| Returns | |
None | This method does not return a value. |
async def handleHTTP(self, exception:
BaseException, request: Request | TransportAdapter) -> Response | None:
(source)
¶
overridden in
orionis.failure.base.BaseExceptionHandlerHandle the exception for HTTP responses.
| Parameters | |
exception:BaseException | The exception instance that was caught. |
request:Request | TransportAdapter | The HTTP request instance or transport adapter that was being processed. |
| Returns | |
Response | None | The HTTP response if handled, otherwise None. |
overridden in
orionis.failure.base.BaseExceptionHandlerDetermine whether the given exception should be ignored.
| Parameters | |
exception:BaseException | The exception instance to check. |
| Returns | |
bool | True if the exception should be ignored, otherwise False. |
overridden in
orionis.failure.base.BaseExceptionHandlerReport or log an exception.
| Parameters | |
exception:BaseException | The exception instance that was caught. |
log:ILogger | The logger instance for error reporting. |
| Returns | |
Throwable or None | The structured Throwable object if reported, otherwise None. |
overridden in
orionis.failure.base.BaseExceptionHandlerConvert an exception to a structured Throwable object.
| Parameters | |
exception:BaseException | Exception instance to be converted. |
| Returns | |
Throwable | Structured Throwable object containing class, message, arguments, and traceback. |