mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2024-11-15 17:40:57 +00:00
XAirRemoteConnectionTimeoutError added to errors
This commit is contained in:
parent
718ecbd982
commit
ed397e57aa
@ -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}"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user