Skip to main content

Crate modkit_errors

Crate modkit_errors 

Source
Expand description

Core error types for the modkit framework

This crate provides pure data types for error handling, with no dependencies on HTTP frameworks. It includes:

  • RFC 9457 Problem Details (Problem)
  • Error catalog support (ErrDef)

Re-exports§

pub use catalog::ErrDef;
pub use problem::APPLICATION_PROBLEM_JSON;
pub use problem::Problem;
pub use problem::ValidationError;
pub use problem::ValidationErrorResponse;
pub use problem::ValidationViolation;

Modules§

catalog
Error catalog support (ErrDef for use with declare_errors! macro)
problem
RFC 9457 Problem Details for HTTP APIs (pure data model, no HTTP framework dependencies)

Functions§

finalize
Helper to attach instance and trace_id to a Problem