mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
Remove MkDocs
This commit is contained in:
parent
7dd80d281f
commit
e1cd7268a1
442 changed files with 4 additions and 9429 deletions
|
|
@ -1,32 +0,0 @@
|
|||
============
|
||||
ErrorHandler
|
||||
============
|
||||
|
||||
There is base class for error handlers.
|
||||
|
||||
Simple usage
|
||||
============
|
||||
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from aiogram.handlers import ErrorHandler
|
||||
|
||||
...
|
||||
|
||||
@router.errors()
|
||||
class MyHandler(ErrorHandler):
|
||||
async def handle(self) -> Any:
|
||||
log.exception(
|
||||
"Cause unexpected exception %s: %s",
|
||||
self.exception_name,
|
||||
self.exception_message
|
||||
)
|
||||
|
||||
Extension
|
||||
=========
|
||||
|
||||
This base handler is subclass of :ref:`BaseHandler <cbh-base-handler>` with some extensions:
|
||||
|
||||
- :code:`self.exception_name` is alias for :code:`self.event.__class__.__name__`
|
||||
- :code:`self.exception_message` is alias for :code:`str(self.event)`
|
||||
Loading…
Add table
Add a link
Reference in a new issue