mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2024-11-22 04:40:58 +00:00
15 lines
397 B
Python
15 lines
397 B
Python
class XAirRemoteError(Exception):
|
|
"""Base error class for XAIR Remote."""
|
|
|
|
|
|
class XAirRemoteConnectionTimeoutError(XAirRemoteError):
|
|
"""Exception raised when a connection attempt times out"""
|
|
|
|
def __init__(self, ip, port):
|
|
self.ip = ip
|
|
self.port = port
|
|
|
|
super().__init__(
|
|
f"Timeout attempting to connect to mixer at {self.ip}:{self.port}"
|
|
)
|