XMRigAPIError
Bases: Exception
Exception raised when a general error occurs with the XMRig API.
Attributes:
Name | Type | Description |
---|---|---|
error |
str
|
Specific error message. |
traceback |
str
|
Traceback of the error. |
message |
str
|
Error message explaining the API issue. |
Source code in xmrig/exceptions.py
__init__(error=None, traceback=None, message='An error occurred with the XMRig API:')
Initialize the API error.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
error
|
str
|
Specific error message. Defaults to None. |
None
|
traceback
|
str
|
Traceback of the error. Defaults to None. |
None
|
message
|
str
|
Error message explaining the API issue. Defaults to a generic API error message. |
'An error occurred with the XMRig API:'
|