canic-core 0.24.8

Canic — a canister orchestration and management toolkit for the Internet Computer
Documentation
pub mod icrc;
pub mod policy;

use crate::{InternalError, InternalErrorOrigin};
use thiserror::Error as ThisError;

///
/// DomainError
///

#[derive(Debug, ThisError)]
pub enum DomainError {
    #[error(transparent)]
    Policy(#[from] policy::PolicyError),
}

impl From<DomainError> for InternalError {
    fn from(err: DomainError) -> Self {
        Self::domain(InternalErrorOrigin::Domain, err.to_string())
    }
}