Skip to content

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:

AttributeType
status_code`int
response_bodystr
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.

poma 0.7.0 also exports InvalidGrillApiKeyError, raised by the deprecated Grill / AsyncGrill clients; 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.