Module errors

Module errors 

Source
Expand description

§Errors (Feathers-style)

DogRS provides a Feathers-inspired set of structured errors. Core goals:

  • consistent status codes + class names
  • can be carried through anyhow::Error (for hook pipeline)
  • transport-agnostic (server crate decides how to serialize)

If you enable feature serde, you also get:

  • data / errors as serde_json::Value
  • to_json() helper

Structs§

DogError
A structured DogRS error that can live inside anyhow::Error.

Enums§

ErrorKind
Feathers-ish error class names + status codes.

Traits§

IntoAnyhowDogError
Convenience trait: convert a DogError into anyhow::Error.

Type Aliases§

DogResult
A convenience result type for DogRS core APIs.
ErrorValue