Skip to main content
The SDK provides a hierarchy of error classes for different failure scenarios.

Error Hierarchy

ComplianceError

Base class for all SDK errors.

Properties

Methods

ValidationError

Thrown when input fails schema validation.

Properties

ValidationIssue

Example

APIError

Base class for API-related errors.

Properties

Type Guard

NotFoundError

Thrown when a resource is not found (404).

Properties

Example

UnauthorizedError

Thrown when authentication fails (401).

Example

ForbiddenError

Thrown when access is denied (403).

Example

RateLimitError

Thrown when rate limit is exceeded (429).

Properties

Example

ServerError

Thrown for server errors (5xx).

Example

NetworkError

Thrown for network failures.

Example

TimeoutError

Thrown when request times out.

Example

UploadError

Base class for upload-related errors.

Properties

UploadStage

Type Guard

FileTooLargeError

Thrown when file exceeds size limit.

Properties

InvalidFileTypeError

Thrown for unsupported file types.

Properties

UploadTimeoutError

Thrown when upload times out.

UploadAbortedError

Thrown when upload is aborted.

UploadUrlExpiredError

Thrown when upload URL has expired.