Skip to main content

Module error

Module error 

Source
Expand description

Error types raised by identifier validation and database value conversion.

The crate exposes two error enums:

  • IdValidationError — produced when a try_new constructor on a typed identifier rejects its input (empty string, malformed shape, etc.).
  • DbValueError — produced when FromDbValue cannot convert a DbValue variant into the requested target type (NULL where a value is required, type mismatch, parse failure, numeric overflow).

Both implement std::error::Error so callers can compose them into larger thiserror-derived enums via #[from].

Enums§

DbValueError
IdValidationError