From 5e7d9af95d60c6d876ae4776aa041aaf915bf988 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 30 Dec 2017 19:30:51 +0100 Subject: [PATCH] Document the Error class --- pyrogram/api/errors/error.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyrogram/api/errors/error.py b/pyrogram/api/errors/error.py index d3ea1e6e..33455d66 100644 --- a/pyrogram/api/errors/error.py +++ b/pyrogram/api/errors/error.py @@ -24,6 +24,9 @@ from .exceptions.all import exceptions class Error(Exception): + """This is the base exception class for all Telegram API related errors. + For a finer grained control, see the specific errors below. + """ ID = None CODE = None NAME = None @@ -65,6 +68,10 @@ class Error(Exception): class UnknownError(Error): + """This object represents an Unknown Error, that is, an error which + Pyrogram does not know anything about, yet. + """ CODE = 520 + """:obj:`int`: Error code""" NAME = "Unknown error" MESSAGE = "{x}"