POMA SDK Exceptions Reference
python
from poma import (
ApiError,
InvalidInputError,
InvalidResponseError,
PomaSDKError,
)PomaSDKError
Base class for SDK-specific exceptions.
ApiError
Raised when the API returns an HTTP or job-level error.
Attributes:
| Attribute | Type |
|---|---|
status_code | `int |
response_body | str |
job_id | `str |
file_path | `str |
url | `str |
InvalidInputError
Raised when an SDK method receives invalid or missing input.
InvalidResponseError
Raised when the server returns an unexpected, empty, or non-JSON response.
poma0.7.0 also exportsInvalidGrillApiKeyError, raised by the deprecatedGrill/AsyncGrillclients; they are no longer part of the PrimeCut SDK. Their successor is index4.ai (formerly Grill) with its own package,pip install index4ai: see Migrating from poma.Grill.