Skip to content

Commit 96a904d

Browse files
authored
docs: Update api docs with validation
Signed-off-by: Eric Deandrea <[email protected]>
1 parent 3752b2d commit 96a904d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/src/doc/docs/docling-serve/serve-api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ if (response.getDocument() != null && response.getDocument().getMarkdownContent(
165165
The exact transport-level exceptions (e.g., timeouts, connectivity) depend on the client implementation
166166
you use. The reference client throws standard Java exceptions for HTTP and I/O failures.
167167

168+
### Validation errors
169+
170+
In the case of a request validation error (i.e. `docling-serve` throws a `422` error), the docling-java API will throw an `ai.docling.serve.api.validation.ValidationException` which can be caught and inspected.
171+
168172
## Logging and builders
169173

170174
`DoclingServeApi` exposes a `toBuilder()` method so implementations can be duplicated and tweaked. Most

0 commit comments

Comments
 (0)