Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/reference/exceptions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Exceptions

The high-level client raises SDK exceptions for HTTP error responses rather
than returning error models as operation results:

- HTTP 422 raises `OblidogValidationError`.
- Typed integration run conflicts raise `OblidogConflictError`; its `code`
contains the integration conflict reason.
- Other HTTP errors raise `OblidogApiError`.

These exceptions preserve the original HTTP status in `status_code` and the
complete response bytes in `content`, including error codes and `params`.
Undocumented statuses also raise `OblidogApiError` with the generated exception
retained as the cause.

::: oblidog_client.OblidogError

::: oblidog_client.OblidogApiError
Expand Down
Loading
Loading