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.

MilanoteException(raw_response, message)
 9    def __init__(self, raw_response, message):
10        self.raw_response = raw_response
11        self.message = message
12        super().__init__(self.message)
raw_response: dict

Raw response from Milanote.

message: str

Message of the exception.

Inherited Members
builtins.BaseException
with_traceback
class BoardNotFoundError(MilanoteException):
18class BoardNotFoundError(MilanoteException):
19    """Board not found."""

Board not found.

Inherited Members
MilanoteException
MilanoteException
raw_response
message
builtins.BaseException
with_traceback
class NotAuthorizedError(MilanoteException):
22class NotAuthorizedError(MilanoteException):
23    """Not authorized."""

Not authorized.

Inherited Members
MilanoteException
MilanoteException
raw_response
message
builtins.BaseException
with_traceback
class UnknownError(MilanoteException):
26class UnknownError(MilanoteException):
27    """Unknown error."""

Unknown error.

Inherited Members
MilanoteException
MilanoteException
raw_response
message
builtins.BaseException
with_traceback