pub trait SolErrorMetadata {
// Required method
fn error_specs() -> Vec<ErrorMetadata>;
}
Expand description
Provides Solidity custom error metadata for an error type.
§Note
For enums, each variant typically corresponds to its own Solidity custom error type.
Required Methods§
Sourcefn error_specs() -> Vec<ErrorMetadata>
fn error_specs() -> Vec<ErrorMetadata>
Returns the metadata for the error type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.