withdrawals_contract/
error.rs

1use platform_version::version::FeatureVersion;
2
3#[derive(thiserror::Error, Debug)]
4pub enum Error {
5    /// Platform expected some specific versions
6    #[error("platform unknown version on {method}, received: {received}")]
7    UnknownVersionMismatch {
8        /// method
9        method: String,
10        /// the allowed versions for this method
11        known_versions: Vec<FeatureVersion>,
12        /// requested core height
13        received: FeatureVersion,
14    },
15    #[error("schema deserialize error: {0}")]
16    InvalidSchemaJson(#[from] serde_json::Error),
17}