MilanoteUnofficialApi.exceptions
1class MilanoteException(Exception): 2 """Base class for Milanote exceptions.""" 3 raw_response: dict 4 """Raw response from Milanote.""" 5 message: str 6 """Message of the exception.""" 7 8 def __init__(self, raw_response, message): 9 self.raw_response = raw_response 10 self.message = message 11 super().__init__(self.message) 12 13 def __str__(self): 14 return self.message 15 16 17class BoardNotFoundError(MilanoteException): 18 """Board not found.""" 19 20 21class NotAuthorizedError(MilanoteException): 22 """Not authorized.""" 23 24 25class UnknownError(MilanoteException): 26 """Unknown error."""
class
MilanoteException(builtins.Exception):
2class MilanoteException(Exception): 3 """Base class for Milanote exceptions.""" 4 raw_response: dict 5 """Raw response from Milanote.""" 6 message: str 7 """Message of the exception.""" 8 9 def __init__(self, raw_response, message): 10 self.raw_response = raw_response 11 self.message = message 12 super().__init__(self.message) 13 14 def __str__(self): 15 return self.message
Base class for Milanote exceptions.
Inherited Members
- builtins.BaseException
- with_traceback
Board not found.
Inherited Members
- builtins.BaseException
- with_traceback
Not authorized.
Inherited Members
- builtins.BaseException
- with_traceback
Unknown error.
Inherited Members
- builtins.BaseException
- with_traceback