Skip to content

XMRigAuthorizationError

Bases: XMRigAPIError

Exception raised when an authorization error occurs with the XMRig API.

Source code in xmrig/exceptions.py
class XMRigAuthorizationError(XMRigAPIError):
    """
    Exception raised when an authorization error occurs with the XMRig API.
    """
    def __init__(self, error: str = None, traceback: str = None, message: str = "Access token is required but not provided. Please provide a valid access token.") -> None:
        super().__init__(error, traceback, message)