XAirRemoteConnectionTimeoutError added to errors

This commit is contained in:
onyx-and-iris 2024-02-16 12:26:24 +00:00
parent 718ecbd982
commit ed397e57aa

View File

@ -1,2 +1,14 @@
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}"
)