Skip to main content

orion_error/core/
domain.rs

1use std::fmt::{Debug, Display};
2
3use derive_more::From;
4use thiserror::Error;
5
6use super::UvsReason;
7
8pub trait DomainReason:
9    PartialEq + Display + Debug + Send + Sync + 'static
10{
11}
12
13#[allow(dead_code)]
14#[derive(Debug, PartialEq, Error, From)]
15#[cfg_attr(feature = "serde", derive(serde::Serialize))]
16pub enum NullReason {
17    #[allow(dead_code)]
18    #[error("null")]
19    Null,
20    #[error("{0}")]
21    Uvs(UvsReason),
22}
23
24impl DomainReason for NullReason {}