Struct concordium_std::Reject [−][src]
#[repr(transparent)]pub struct Reject { pub error_code: NonZeroI32, }
Expand description
An error message, signalling rejection of a smart contract invocation. The client will see the error code as a reject reason; if a schema is provided, the error message corresponding to the error code will be displayed. The valid range for an error code is from i32::MIN to -1.
Fields
error_code: NonZeroI32
Implementations
Trait Implementations
impl From<NewContractNameError> for Reject
[src]
impl From<NewContractNameError> for Reject
[src]MissingInitPrefix is mapped to i32::MIN + 5, and TooLong is mapped to i32::MIN + 6.
fn from(nre: NewContractNameError) -> Self
[src]
fn from(nre: NewContractNameError) -> Self
[src]Performs the conversion.
impl From<NewReceiveNameError> for Reject
[src]
impl From<NewReceiveNameError> for Reject
[src]MissingDotSeparator is mapped to i32::MIN + 7, and TooLong is mapped to i32::MIN + 8.
fn from(nre: NewReceiveNameError) -> Self
[src]
fn from(nre: NewReceiveNameError) -> Self
[src]Performs the conversion.
impl From<ParseError> for Reject
[src]
impl From<ParseError> for Reject
[src]fn from(_: ParseError) -> Self
[src]
fn from(_: ParseError) -> Self
[src]Performs the conversion.