kythera-common 0.1.0

Common utilities for the Filecoin ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2023 Polyphene.
// SPDX-License-Identifier: Apache-2.0, MIT

/// Kythera common errors.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Method name `{0}` is invalid")]
    InvalidMethodName(String),
    #[error("Could not generate method number for `{name}`")]
    MethodNumberGeneration {
        name: String,
        #[source]
        source: Box<dyn std::error::Error + Sync + Send>,
    },
}