uf-photon-core 0.1.0

Photon core types and identity port
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Identity and factory errors.

use thiserror::Error;

/// Errors from [`crate::IdentityFactory::reconstruct`].
#[derive(Debug, Error)]
pub enum IdentityError {
    /// JSON or policy rejected the actor payload.
    #[error("invalid actor: {0}")]
    InvalidActor(String),
    /// Factory/backend failure.
    #[error(transparent)]
    Other(#[from] anyhow::Error),
}