aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon/Mastodon.py')
-rw-r--r--mastodon/Mastodon.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 49db771..8634fd1 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -1280,21 +1280,29 @@ class Mastodon:
1280## 1280##
1281# Exceptions 1281# Exceptions
1282## 1282##
1283class MastodonIllegalArgumentError(ValueError): 1283class MastodonError(Exception):
1284 """Base class for Mastodon.py exceptions"""
1285
1286
1287class MastodonIllegalArgumentError(ValueError, MastodonError):
1284 pass 1288 pass
1285 1289
1286 1290
1287class MastodonFileNotFoundError(IOError): 1291class MastodonIOError(IOError, MastodonError):
1292 """Base class for Mastodon.py I/O errors"""
1293
1294
1295class MastodonFileNotFoundError(MastodonIOError):
1288 pass 1296 pass
1289 1297
1290 1298
1291class MastodonNetworkError(IOError): 1299class MastodonNetworkError(MastodonIOError):
1292 pass 1300 pass
1293 1301
1294 1302
1295class MastodonAPIError(Exception): 1303class MastodonAPIError(MastodonError):
1296 pass 1304 pass
1297 1305
1298 1306
1299class MastodonRatelimitError(Exception): 1307class MastodonRatelimitError(MastodonError):
1300 pass 1308 pass
Powered by cgit v1.2.3 (git 2.41.0)