2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 22:35:36 +00:00

Refactor project and move errors namespace out from pyrogram.api

This commit is contained in:
Dan
2019-03-25 11:10:46 +01:00
parent 066633ce45
commit b5c6db6db0
104 changed files with 223 additions and 243 deletions

View File

@@ -1,8 +1,7 @@
400 - Bad Request
=================
.. module:: pyrogram.api.errors.BadRequest
.. module:: pyrogram.errors.BadRequest
.. automodule:: pyrogram.api.errors.exceptions.bad_request_400
.. automodule:: pyrogram.errors.exceptions.bad_request_400
:members:
:show-inheritance:

View File

@@ -1,8 +1,7 @@
420 - Flood
===========
.. module:: pyrogram.api.errors.Flood
.. module:: pyrogram.errors.Flood
.. automodule:: pyrogram.api.errors.exceptions.flood_420
.. automodule:: pyrogram.errors.exceptions.flood_420
:members:
:show-inheritance:

View File

@@ -1,8 +1,7 @@
403 - Forbidden
===============
.. module:: pyrogram.api.errors.Forbidden
.. module:: pyrogram.errors.Forbidden
.. automodule:: pyrogram.api.errors.exceptions.forbidden_403
.. automodule:: pyrogram.errors.exceptions.forbidden_403
:members:
:show-inheritance:

View File

@@ -1,8 +1,7 @@
500 - Internal Server Error
===========================
.. module:: pyrogram.api.errors.InternalServerError
.. module:: pyrogram.errors.InternalServerError
.. automodule:: pyrogram.api.errors.exceptions.internal_server_error_500
.. automodule:: pyrogram.errors.exceptions.internal_server_error_500
:members:
:show-inheritance:

View File

@@ -1,8 +1,7 @@
406 - Not Acceptable
====================
.. module:: pyrogram.api.errors.NotAcceptable
.. module:: pyrogram.errors.NotAcceptable
.. automodule:: pyrogram.api.errors.exceptions.not_acceptable_406
.. automodule:: pyrogram.errors.exceptions.not_acceptable_406
:members:
:show-inheritance:

View File

@@ -1,8 +1,7 @@
303 - See Other
===============
.. module:: pyrogram.api.errors.SeeOther
.. module:: pyrogram.errors.SeeOther
.. automodule:: pyrogram.api.errors.exceptions.see_other_303
.. automodule:: pyrogram.errors.exceptions.see_other_303
:members:
:show-inheritance:

View File

@@ -1,8 +1,7 @@
401 - Unauthorized
==================
.. module:: pyrogram.api.errors.Unauthorized
.. module:: pyrogram.errors.Unauthorized
.. automodule:: pyrogram.api.errors.exceptions.unauthorized_401
.. automodule:: pyrogram.errors.exceptions.unauthorized_401
:members:
:show-inheritance:

View File

@@ -1,8 +1,7 @@
520 - Unknown Error
===================
.. module:: pyrogram.api.errors.UnknownError
.. module:: pyrogram.errors.UnknownError
.. autoexception:: pyrogram.api.errors.error.UnknownError
.. autoexception:: pyrogram.errors.rpc_error.UnknownError
:members:
:show-inheritance:

View File

@@ -1,9 +1,8 @@
Error
=====
RPCError
========
.. autoexception:: pyrogram.Error
.. autoexception:: pyrogram.RPCError
:members:
:show-inheritance:
.. toctree::
../errors/SeeOther

View File

@@ -15,6 +15,6 @@ after the well established `Telegram Bot API`_ methods, thus offering a familiar
Filters
ChatAction
ParseMode
Error
RPCError
.. _Telegram Bot API: https://core.telegram.org/bots/api#available-methods