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 = None, traceback = None, message = "Failed to connect to the XMRig API. Please check the IP, port, and network connection."):
        super().__init__(error, traceback, message)