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
sourceimpl<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.
sourcefn from(cce: CallContractError<T>) -> Self
fn from(cce: CallContractError<T>) -> Self
Converts to this type from the input type.
sourceimpl From<LogError> for Reject
impl From<LogError> for Reject
Full is mapped to i32::MIN + 3, Malformed is mapped to i32::MIN + 4.
sourceimpl 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.
sourcefn from(nre: NewContractNameError) -> Self
fn from(nre: NewContractNameError) -> Self
Converts to this type from the input type.
sourceimpl 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.
sourcefn from(nre: NewReceiveNameError) -> Self
fn from(nre: NewReceiveNameError) -> Self
Converts to this type from the input type.
sourceimpl From<NonZeroI32> for Reject
impl From<NonZeroI32> for Reject
sourcefn from(error_code: NonZeroI32) -> Self
fn from(error_code: NonZeroI32) -> Self
Converts to this type from the input type.
sourceimpl From<NotPayableError> for Reject
impl From<NotPayableError> for Reject
The error code is i32::MIN + 12.
sourcefn from(_: NotPayableError) -> Self
fn from(_: NotPayableError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for Reject
impl From<ParseError> for Reject
Mapped to i32::MIN + 2.
sourcefn from(_: ParseError) -> Self
fn from(_: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<TransferError> for Reject
impl From<TransferError> for Reject
AmountTooLarge is i32::MIN + 13, MissingAccount is i32::MIN + 14.
sourcefn from(te: TransferError) -> Self
fn from(te: TransferError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<Reject> for Reject
impl PartialEq<Reject> for Reject
impl Eq for Reject
impl StructuralEq for Reject
impl StructuralPartialEq for Reject
Auto Trait Implementations
impl RefUnwindSafe for Reject
impl Send for Reject
impl Sync for Reject
impl Unpin for Reject
impl UnwindSafe for Reject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more