Exceptions¶
Gateway¶
- exception sonolink.InvalidNodePassword(node: Node)[source]¶
Exception raised when a Node attempts to connect with an invalid password.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- args¶
- exception sonolink.NodeURINotFound(node: Node)[source]¶
Exception raised when a Node’s uri is not found when connecting.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- args¶
Rest¶
- class sonolink.ErrorResponseType(*, timestamp: int, status: int, error: str, path: str, message: str | None = None, trace: str | None = None)[source]¶
Represents the error response on a HTTP request.
- exception sonolink.HTTPException(data: bytes)[source]¶
An error response received by a HTTP request.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- args¶
- timestamp¶
The timestamp on which this exception was created.
Network¶
- exception sonolink.network.errors.WebSocketError(original: WSErrorType)[source]¶
Exception raised when a websocket error occurrs.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- args¶