mirror of
				https://github.com/onyx-and-iris/xair-api-python.git
				synced 2025-11-04 08:21:44 +00:00 
			
		
		
		
	XAirRemoteConnectionTimeoutError added to errors
This commit is contained in:
		
							parent
							
								
									718ecbd982
								
							
						
					
					
						commit
						ed397e57aa
					
				@ -1,2 +1,14 @@
 | 
				
			|||||||
class XAirRemoteError(Exception):
 | 
					class XAirRemoteError(Exception):
 | 
				
			||||||
    """Base error class for XAIR Remote."""
 | 
					    """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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user