-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathmsl.py
More file actions
26 lines (16 loc) · 719 Bytes
/
msl.py
File metadata and controls
26 lines (16 loc) · 719 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
"""Custom exception classes raised when errors occur during use of MSL features."""
from typing import TYPE_CHECKING, override
from typed_classproperties import classproperty
from .base import BaseTeXBotError
if TYPE_CHECKING:
from collections.abc import Sequence
__all__: "Sequence[str]" = ("MSLMembershipError",)
class MSLMembershipError(BaseTeXBotError, RuntimeError):
"""
Exception class to raise when any error occurs while checking MSL membership.
If this error occurs, it is likely that MSL features will not work correctly.
"""
@classproperty
@override
def DEFAULT_MESSAGE(cls) -> str:
return "An error occurred while trying to fetch membership data from MSL."