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

input-output-hk / catalyst-libs / 16054905839

03 Jul 2025 03:45PM UTC coverage: 65.701% (+0.02%) from 65.683%
16054905839

Pull #405

github

web-flow
Merge 30c505c79 into 31f00a4a8
Pull Request #405: fix(rust/rbac-registration): Fix `validate_txn_inputs_hash` error message

0 of 1 new or added line in 1 file covered. (0.0%)

6 existing lines in 2 files now uncovered.

10972 of 16700 relevant lines covered (65.7%)

2614.24 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