Module: error
APIError
Bases: Exception
Exception raised for errors during API calls.
Source code in src/infernet_client/error.py
__init__(status_code, message='Error occurred in API call', params=None)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
status_code |
int
|
HTTP status code of the response |
required |
message |
str
|
explanation of the error |
'Error occurred in API call'
|
params |
dict[str, Any]
|
parameters used in the API call |
None
|
Source code in src/infernet_client/error.py
__str__()
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
string representation of the error |