• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

input-output-hk / catalyst-libs / 16618685382

pending completion
16618685382

Pull #419

github

web-flow
Merge 3cdf83512 into 654b17f07
Pull Request #419: feat(docs): Form Element Documentation

10738 of 16725 relevant lines covered (64.2%)

2361.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/rust/catalyst-types/src/catalyst_id/errors.rs
1
//! Errors returned by this type
2

3
use displaydoc::Display;
4
use thiserror::Error;
5

6
use super::{key_rotation::KeyRotationError, role_index::RoleIdError};
7

8
/// Errors that can occur when parsing a `KidUri`
9
#[derive(Display, Error, Debug)]
×
10
pub enum CatalystIdError {
11
    /// Invalid KID URI
12
    InvalidURI(#[from] fluent_uri::error::ParseError<String>),
13
    /// Invalid Scheme, not a ID URI
14
    InvalidScheme,
15
    /// Network not defined in URI
16
    NoDefinedNetwork,
17
    /// Invalid Nonce
18
    InvalidNonce,
19
    /// Path of URI is invalid
20
    InvalidPath,
21
    /// Role 0 Key in path is invalid
22
    InvalidRole0Key,
23
    /// Role 0 Key in path is not encoded correctly
24
    InvalidRole0KeyEncoding(#[from] base64_url::base64::DecodeError),
25
    /// Role Index is invalid
26
    InvalidRole,
27
    /// Role Index is not encoded correctly
28
    InvalidRoleId(#[from] RoleIdError),
29
    /// Role Key Rotation is invalid
30
    InvalidRotation,
31
    /// Role Key Rotation is not encoded correctly
32
    InvalidRotationValue(#[from] KeyRotationError),
33
    /// Encryption key Identifier Fragment is not valid
34
    InvalidEncryptionKeyFragment,
35
    /// Invalid Text encoding
36
    InvalidTextEncoding(#[from] std::string::FromUtf8Error),
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc