Derive Macro near_sdk::FunctionError

source ยท
#[derive(FunctionError)]
Expand description

FunctionError generates implementation for near_sdk::FunctionError trait. It allows contract runtime to panic with the type using its ToString implementation as the message.