uf-photon-core 0.1.2

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 (typed; no `anyhow` in the library API).
    #[error("identity factory: {0}")]
    Factory(String),
}