You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/doc/docs/docling-serve/serve-api.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,10 @@ if (response.getDocument() != null && response.getDocument().getMarkdownContent(
165
165
The exact transport-level exceptions (e.g., timeouts, connectivity) depend on the client implementation
166
166
you use. The reference client throws standard Java exceptions for HTTP and I/O failures.
167
167
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
+
168
172
## Logging and builders
169
173
170
174
`DoclingServeApi` exposes a `toBuilder()` method so implementations can be duplicated and tweaked. Most
0 commit comments