#[repr(i32)]pub enum CallingError {
Invalid = 0,
DecodingSuccess(FaultString),
DecodingException(FaultString),
EncodingArgs(FaultString),
Reentrance = 4,
DepthExceeded = 5,
}Expand description
Plumbing errors resulting from making a contract call:
Variants§
Invalid = 0
DecodingSuccess(FaultString)
DecodingException(FaultString)
EncodingArgs(FaultString)
Reentrance = 4
The target address already had a frame open on the invocation stack, so the runtime refused the call as reentrant. The callee never ran.
DepthExceeded = 5
Admitting the call would have exceeded the network’s cross-invoke depth bound. The callee never ran; the same call succeeds from a shallower frame.
Trait Implementations§
Source§impl ConstMaxSize for CallingError
impl ConstMaxSize for CallingError
Source§impl ConstMaxSize for CallingError
impl ConstMaxSize for CallingError
Source§impl ContractTypeName for CallingError
impl ContractTypeName for CallingError
Source§const NAME: ContractSpecIdView<'static>
const NAME: ContractSpecIdView<'static>
The fully qualified id this type is known by in the contract spec. Read more
Source§impl ContractTypeRefSpec for CallingError
impl ContractTypeRefSpec for CallingError
Source§const INFO: ContractTypeInfo<'static>
const INFO: ContractTypeInfo<'static>
The type reference. Transitive type definitions are not carried here;
they are retained via the linker-anchor mechanism
(
__THRUPUT_SPEC_ANCHOR_ROOT) and resolved by spec-tool.Source§const SIGNED_PREIMAGE: Option<&'static ContractTypeView<'static>> = _
const SIGNED_PREIMAGE: Option<&'static ContractTypeView<'static>> = _
How this type appears as a signed-token preimage
(
ContractTypeView::SignedToken’s payload): the type itself by
default, or None for a type-erased payload (the SDK’s Opaque
overrides this).Source§impl ContractTypeSpec for CallingError
impl ContractTypeSpec for CallingError
Source§const TYPE_DEF: ContractTypeDefView<'static>
const TYPE_DEF: ContractTypeDefView<'static>
The type’s definition (struct, enum, or union) as a const view.
Source§impl Debug for CallingError
impl Debug for CallingError
Source§impl Display for CallingError
impl Display for CallingError
impl EncodesAs<CallingError> for CallingError
Source§impl Error for CallingError
impl Error for CallingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CallingError> for LibraryExn
impl From<CallingError> for LibraryExn
Source§fn from(e: CallingError) -> Self
fn from(e: CallingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CallingError
impl PartialEq for CallingError
Source§impl ReThrow for CallingError
Result<T, CallingError>::or_re_throw() aborts with the typed
LibraryExn::Calling exception (client-side interface path).
impl ReThrow for CallingError
Result<T, CallingError>::or_re_throw() aborts with the typed
LibraryExn::Calling exception (client-side interface path).
Source§impl<'_r> ReadXDR<'_r> for CallingError
impl<'_r> ReadXDR<'_r> for CallingError
impl StructuralPartialEq for CallingError
Source§impl WriteXDR for CallingError
impl WriteXDR for CallingError
Source§fn write_xdr<F, W: Writer<F>>(
&self,
__write_xdr_writer: &mut W,
) -> WriteResult<()>
fn write_xdr<F, W: Writer<F>>( &self, __write_xdr_writer: &mut W, ) -> WriteResult<()>
Writes this value as XDR data to the writer. Read more
Source§unsafe fn write_xdr_unchecked<F, W: WriterUnchecked<F>>(
&self,
__write_xdr_writer: &mut W,
)
unsafe fn write_xdr_unchecked<F, W: WriterUnchecked<F>>( &self, __write_xdr_writer: &mut W, )
Writes this value as XDR data to the writer, without runtime checks. Read more
Auto Trait Implementations§
impl Freeze for CallingError
impl RefUnwindSafe for CallingError
impl Send for CallingError
impl Sync for CallingError
impl Unpin for CallingError
impl UnsafeUnpin for CallingError
impl UnwindSafe for CallingError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more