Exceptions¶
Gateway¶
- exception sonolink.AutoPlaySeedMissing[source]¶
Exception raised when AutoPlay cannot find a valid track to use as a discovery seed.
Added in version 1.1.0.
- 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.FrameworkClientMismatch(*, expected_type: type, received_type: type, framework: FrameworkLiteral)[source]¶
Exception raised when trying to initialize a Sonolink Client with a client that does not match the detected framework. This likely means the client is from a different framework or the framework detection is incorrect.
Added in version 1.1.0.
- 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¶
- framework: FrameworkLiteral¶
The detected framework.
- exception sonolink.FrameworkImportError(*, framework: FrameworkLiteral)[source]¶
Exception raised when trying to initialize a Sonolink Client with a framework’s client, but the framework cannot be imported. This likely means the framework is not installed, there is an issue with the installation or the framework detection is incorrect.
Added in version 1.1.0.
- 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¶
- framework: FrameworkLiteral¶
The detected framework.
- exception sonolink.HistoryEmpty[source]¶
Exception raised when trying to get a track from an empty history.
- 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.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.