Errors
Docex returns structured errors with codes, retryability hints, and actionable suggestions. All errors use the DocexError shape.
Error shape
Error codes
Retry behavior
The SDK automatically retries on retryable errors (retryable: true) with exponential backoff. For manual retry logic:
Client-side errors
The SDK throwsDocexError instances for client-side validation failures (unsupported file types, invalid output formats) before making any API request.