1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::error::AAuthError; #[derive(Debug, thiserror::Error)] pub enum PolicyError { #[error("{0}")] Message(String), } impl From<PolicyError> for AAuthError { fn from(value: PolicyError) -> Self { AAuthError::Message(value.to_string()) } }