Skip to content

XMRigConnectionError

Bases: XMRigAPIError

Exception raised when a connection error occurs with the XMRig API.

Source code in xmrig/exceptions.py
class XMRigConnectionError(XMRigAPIError):
    """
    Exception raised when a connection error occurs with the XMRig API.
    """
    def __init__(self, error: str = None, traceback: str = None, message: str = "Failed to connect to the XMRig API. Please check the IP, port, and network connection.") -> None:
        super().__init__(error, traceback, message)