kythera_common/
error.rs

1// Copyright 2023 Polyphene.
2// SPDX-License-Identifier: Apache-2.0, MIT
3
4/// Kythera common errors.
5#[derive(Debug, thiserror::Error)]
6pub enum Error {
7    #[error("Method name `{0}` is invalid")]
8    InvalidMethodName(String),
9    #[error("Could not generate method number for `{name}`")]
10    MethodNumberGeneration {
11        name: String,
12        #[source]
13        source: Box<dyn std::error::Error + Sync + Send>,
14    },
15}