Errors
SDK exception hierarchy — StratixError → APIError → APIStatusError → HTTP-status-specific exceptions.
Top-level imports
from layerlens import (
StratixError, # base for all SDK errors
APIError, # base for all API-related errors
BadRequestError, # 400
AuthenticationError, # 401
NotFoundError, # 404
)from layerlens._exceptions import (
APIConnectionError,
APITimeoutError,
APIResponseValidationError,
APIStatusError,
PermissionDeniedError,
ConflictError,
UnprocessableEntityError,
RateLimitError,
InternalServerError,
)Full hierarchy
Catch-most-specific-first
Exception properties
Property
Description
Retry semantics
Setting
Default
Common error scenarios
Missing API key
404 on get_by_key
Trace upload — 50 MB limit
See also
Last updated
Was this helpful?