lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

error.rs (1772B)


      1 use thiserror::Error;
      2 
      3 #[derive(Clone, Copy, Debug, Error, PartialEq, Eq)]
      4 pub enum RadrootsRuntimeDistributionError {
      5     #[error("runtime distribution contract exceeds its size limit")]
      6     ContractTooLarge,
      7     #[error("parse runtime distribution contract failed")]
      8     Parse,
      9     #[error("runtime distribution schema is unsupported")]
     10     UnexpectedSchema,
     11     #[error("runtime distribution schema version is unsupported")]
     12     UnexpectedSchemaVersion,
     13     #[error("runtime is not present in the distribution contract")]
     14     UnknownRuntime,
     15     #[error("runtime is not installable through the distribution contract")]
     16     RuntimeNotInstallable,
     17     #[error("hardened service artifact authority cannot use a legacy runtime row")]
     18     HardenedServiceLegacyArtifactRow,
     19     #[error("hardened service artifact contract is invalid")]
     20     InvalidServiceArtifactContract,
     21     #[error("runtime has no target set in the distribution contract")]
     22     MissingTargetSet,
     23     #[error("runtime references an unknown artifact adapter")]
     24     UnknownArtifactAdapter,
     25     #[error("channel is not defined in the distribution contract")]
     26     UnknownChannel,
     27     #[error("channel is defined but not active in the distribution contract")]
     28     InactiveChannel,
     29     #[error("runtime target set references an unknown target")]
     30     UnknownTarget,
     31     #[error("runtime does not support the requested platform")]
     32     UnsupportedPlatform,
     33     #[error("target references an unknown archive format")]
     34     UnknownArchiveFormat,
     35     #[error("target does not define an archive format")]
     36     MissingArchiveFormat,
     37     #[error("service is not a hardened distribution target")]
     38     UnsupportedService,
     39     #[error("service target is not eligible for Tier-1 qualification")]
     40     UnsupportedServiceTarget,
     41 }