1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! Errors that may be emitted by a host function resolver.
use thiserror::Error;
use casper_types::ProtocolVersion;
/// Error conditions of a host function resolver.
#[derive(Error, Debug, Copy, Clone)]
pub enum ResolverError {
/// Unknown protocol version.
#[error("Unknown protocol version: {}", _0)]
UnknownProtocolVersion(ProtocolVersion),
/// WASM module does not export a memory section.
#[error("No imported memory")]
NoImportedMemory,
}