Skip to main content

neo_error

Attribute Macro neo_error 

Source
#[neo_error]
Expand description

Neo N3 Error macro

This macro generates error handling for a Neo N3 contract.

§Example

#[neo_error]
pub enum MyError {
    InvalidValue,
    InvalidName,
}