forked from noah978/AltSourceParser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.py
More file actions
26 lines (22 loc) · 710 Bytes
/
errors.py
File metadata and controls
26 lines (22 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
Project: altparse
Module: altparse
Created Date: 01 Dec 2022
Author: Noah Keck
:------------------------------------------------------------------------------:
MIT License
Copyright (c) 2022
:------------------------------------------------------------------------------:
"""
class AltSourceError(Exception):
"""Base exception for AltSource parsing."""
pass
class GitHubError(AltSourceError):
"""Occurs when there is an error accessing the GitHub API."""
pass
class ArgumentTypeError(AltSourceError):
"""Occurs when an argument is not of the correct type."""
pass
class InsufficientArgsError(AltSourceError):
"""Occurs when there are not enough arguments passed."""
pass