1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Backend-specific error type for the [`crate::sqlx`] row-mapping layer.
//!
//! Conversions between domain aggregates and database rows can fail in
//! ways the domain `try_new` validation never sees (a malformed UUID byte
//! string, a JSON payload that fails to deserialise, a value that the
//! domain constructor then rejects). [`SqlxError`] collapses all of
//! those into one stable variant set.
use IsVariant;
/// Errors produced by [`crate::sqlx`] row → domain (and domain → row)
/// conversions.
///
/// Variants are wire-stable enough for downstream code to match on the
/// `IsVariant` predicates (`err.is_invalid_uuid()` / `err.is_invalid_checksum()`
/// / …). `#[non_exhaustive]` — new variants may be added without a
/// SemVer break.