diff --git a/docs/source/errors/400_bad_request.rst b/docs/source/errors/BadRequest.rst similarity index 100% rename from docs/source/errors/400_bad_request.rst rename to docs/source/errors/BadRequest.rst diff --git a/docs/source/errors/420_flood.rst b/docs/source/errors/Flood.rst similarity index 100% rename from docs/source/errors/420_flood.rst rename to docs/source/errors/Flood.rst diff --git a/docs/source/errors/500_internal_server_error.rst b/docs/source/errors/InternalServerError.rst similarity index 100% rename from docs/source/errors/500_internal_server_error.rst rename to docs/source/errors/InternalServerError.rst diff --git a/docs/source/errors/303_see_other.rst b/docs/source/errors/SeeOther.rst similarity index 100% rename from docs/source/errors/303_see_other.rst rename to docs/source/errors/SeeOther.rst diff --git a/docs/source/errors/401_unauthorized.rst b/docs/source/errors/Unauthorized.rst similarity index 100% rename from docs/source/errors/401_unauthorized.rst rename to docs/source/errors/Unauthorized.rst diff --git a/docs/source/errors/520_unknown_error.rst b/docs/source/errors/UnknownError.rst similarity index 100% rename from docs/source/errors/520_unknown_error.rst rename to docs/source/errors/UnknownError.rst diff --git a/docs/source/pyrogram/Error.rst b/docs/source/pyrogram/Error.rst index af59b1e5..87f3e1a0 100644 --- a/docs/source/pyrogram/Error.rst +++ b/docs/source/pyrogram/Error.rst @@ -1,14 +1,14 @@ Error ===== -.. autoexception:: pyrogram.Error +.. autoexception:: pyrogram.api.errors.error.Error :members: :show-inheritance: .. toctree:: - ../errors/303_see_other - ../errors/400_bad_request - ../errors/401_unauthorized - ../errors/420_flood - ../errors/500_internal_server_error - ../errors/520_unknown_error + ../errors/SeeOther + ../errors/BadRequest + ../errors/Unauthorized + ../errors/Flood + ../errors/InternalServerError + ../errors/UnknownError