❗ Exceptions#
capmonster_python.CapmonsterException #
Bases: Exception
Generic exception class for all errors.
Notes
This will be raised for errors that are not caught elsewhere. These errors can be related HTTP requests, API responses, or other issues.
capmonster_python.CapmonsterAPIException #
Bases: CapmonsterException
Raised when the Capmonster API returns an error.
Attributes:
Name | Type | Description |
---|---|---|
error_id |
The error ID returned by the API. |
|
error_code |
The error code returned by the API. |
|
error_description |
The error description returned by the API. |
Notes
- Error codes are defined in the API documentation.
capmonster_python.CapmonsterValidationException #
Bases: CapmonsterException
Raised when a Capmonster task configuration is invalid.
Attributes:
Name | Type | Description |
---|---|---|
message |
The error message describing the invalid configuration. |
|
field |
The field in the configuration that caused the error, if applicable. |
|
task |
The task type that caused the error, if applicable. |
Notes
- This error only raises when the validation fails within the SDK task creation.