#gateway #error-handling #pingora

cardinal-errors

Shared error types for the Cardinal gateway stack

25 releases

new 0.2.41 Nov 28, 2025
0.2.40 Nov 27, 2025
0.2.39 Oct 27, 2025
0.2.23 Sep 30, 2025
0.1.0 Sep 26, 2025

#541 in Development tools

Download history 634/week @ 2025-09-26 743/week @ 2025-10-03 834/week @ 2025-10-10 300/week @ 2025-10-17 599/week @ 2025-10-24 12/week @ 2025-10-31 3/week @ 2025-11-07

621 downloads per month
Used in 6 crates

Apache-2.0

6KB

cardinal-errors

Centralised error definitions used across the workspace.

  • CardinalError is the top-level error type exposed by public APIs.
  • internal module holds more granular variants (InternalError::ProviderNotRegistered, InvalidWasmModule, etc.).
  • Conversions are implemented so ? works seamlessly across crate boundaries.

When extending the system, add new variants here rather than inventing ad-hoc error enums in downstream crates.

Dependencies

~2.3–3MB
~77K SLoC