Skip to content

API Reference parrot_tools.interfaces.gigsmart.exceptions

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.interfaces.gigsmart.exceptions

View source

Typed exception hierarchy for GigSmart API errors.

Follows the MassiveAPIError pattern from parrot_tools/massive/client.py. Maps to the GraphQL error classification table in the spec (§7).

Class GigSmartAuthError

Authentication or authorisation failure.

Raised when the API returns UNAUTHENTICATED or FORBIDDEN error codes, or when a write-scope operation is attempted with a client_credentials token.

Class GigSmartConflictError

Conflict with the current resource state.

Raised when the API returns a CONFLICT extension code — for example, attempting to hire a worker for an already-filled shift.

Class GigSmartError

Base exception for all GigSmart API errors.

Parameter Type Default Description
message str Human-readable error description.
status_code int | None None HTTP status code associated with the error, if any.

Class GigSmartGraphQLError

Generic GraphQL protocol error.

Raised when the response contains errors that do not match any other classified code.

Parameter Type Default Description
message str Human-readable summary.
errors list[dict] | None None The raw errors list from the GraphQL response body, preserving the full extensions payload for diagnostics.
status_code int | None None

Attributes:

Attribute Type Description
errors list[dict]

Class GigSmartNotFoundError

Requested resource does not exist.

Raised when the API returns a NOT_FOUND extension code.

Class GigSmartRateLimitError

Rate limit exceeded (HTTP 429 / RATE_LIMITED extension code).

Parameter Type Default Description
message str Human-readable error description.
retry_after int | None None Seconds to wait before retrying, derived from the Retry-After response header. Defaults to 60 when the header is absent.

Attributes:

Attribute Type Description
retry_after int

Class GigSmartTransportError

Network or server-side transport failure.

Raised on HTTP 5xx responses and unrecoverable network errors. This class of error is retryable with exponential backoff.

Class GigSmartValidationError

Input validation failure.

Raised when the API returns BAD_USER_INPUT — the caller supplied invalid values for a query argument or mutation field.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally