Struct concordium_std::Reject
source · pub struct Reject {
pub error_code: NonZeroI32,
pub return_value: Option<Vec<u8>>,
}
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. A return value can also be provided.
Fields§
§error_code: NonZeroI32
§return_value: Option<Vec<u8>>
Implementations§
Trait Implementations§
source§impl<T> From<CallContractError<T>> for Reject
impl<T> From<CallContractError<T>> for Reject
AmountTooLarge is i32::MIN + 15, MissingAccount is i32::MIN + 16, MissingContract is i32::MIN + 17, MissingEntrypoint is i32::MIN + 18, MessageFailed is i32::MIN + 19, LogicReject is i32::MIN + 20, Trap is i32::MIN + 21.
source§fn from(cce: CallContractError<T>) -> Self
fn from(cce: CallContractError<T>) -> Self
source§impl From<LogError> for Reject
impl From<LogError> for Reject
Full is mapped to i32::MIN + 3, Malformed is mapped to i32::MIN + 4.
source§impl From<NewContractNameError> for Reject
impl From<NewContractNameError> for Reject
MissingInitPrefix is mapped to i32::MIN + 5, TooLong to i32::MIN + 6, ContainsDot to i32::MIN + 9, and InvalidCharacters to i32::MIN + 10.
source§fn from(nre: NewContractNameError) -> Self
fn from(nre: NewContractNameError) -> Self
source§impl From<NewReceiveNameError> for Reject
impl From<NewReceiveNameError> for Reject
MissingDotSeparator is mapped to i32::MIN + 7, TooLong to i32::MIN + 8, and InvalidCharacters to i32::MIN + 11.
source§fn from(nre: NewReceiveNameError) -> Self
fn from(nre: NewReceiveNameError) -> Self
source§impl From<NonZero<i32>> for Reject
impl From<NonZero<i32>> for Reject
source§fn from(error_code: NonZeroI32) -> Self
fn from(error_code: NonZeroI32) -> Self
source§impl From<NotPayableError> for Reject
impl From<NotPayableError> for Reject
The error code is i32::MIN + 12.
source§fn from(_: NotPayableError) -> Self
fn from(_: NotPayableError) -> Self
source§impl From<ParseError> for Reject
impl From<ParseError> for Reject
Mapped to i32::MIN + 2.
source§fn from(_: ParseError) -> Self
fn from(_: ParseError) -> Self
source§impl From<QueryAccountBalanceError> for Reject
impl From<QueryAccountBalanceError> for Reject
Query account balance error missing account is i32::MIN + 25.
source§fn from(_: QueryAccountBalanceError) -> Self
fn from(_: QueryAccountBalanceError) -> Self
source§impl From<QueryContractBalanceError> for Reject
impl From<QueryContractBalanceError> for Reject
Query contract balance error missing contract is i32::MIN + 26.
source§fn from(_: QueryContractBalanceError) -> Self
fn from(_: QueryContractBalanceError) -> Self
source§impl From<TransferError> for Reject
impl From<TransferError> for Reject
AmountTooLarge is i32::MIN + 13, MissingAccount is i32::MIN + 14.
source§fn from(te: TransferError) -> Self
fn from(te: TransferError) -> Self
source§impl From<UpgradeError> for Reject
impl From<UpgradeError> for Reject
MissingModule is i32::MIN + 22, MissingContract is i32::MIN + 23, UnsupportedModuleVersion is i32::MIN + 24.