Skip to main content

api/dto/
error.rs

1use thiserror::*;
2
3/// Errors exposed by the API.
4#[derive(Debug, Error)]
5pub enum DTOError {
6    /// String cannot be decoded into a Uuid.
7    #[error("invalid id: {0}")]
8    InvalidId(#[from] uuid::Error),
9}