Crate dyn_problem
source ·Expand description
This crate provides a reified dynamic error type, for using in cases, where one may want to be flexible about kinds of error for an operation.
The Problem
type allows to specify kind/type of an
error as a uri dynamically.
Along with that, the type allows to record a string message,
and lets us to attach custom extensions too.
Modules
- I define
ProblemType
struct, that defines a problem type.
Macros
- Macro to easily define problem types in a namespace.
Structs
Traits
- An extension trait for
ProblemBuilder
, that makes using extensions as typed record easier.