pub enum Error {
Show 39 variants
InvalidSignatureCount = 1,
SystemNotEnabled = 2,
RecipientZeroAddress = 3,
FeeNotPaid = 4,
TransactionAlreadyProcessed = 5,
RelayerNotAuthorized = 6,
CallerNotRelayer = 7,
GasRefundFailed = 8,
InvalidKey = 9,
DuplicateSignerDetected = 10,
InsufficientProjectSignatures = 11,
InsufficientChainSignatures = 12,
InsufficientVIASignatures = 13,
POSValidationFailed = 14,
ChainsEndpointsMislength = 15,
MissingMessageGateway = 16,
MissingChainEndpoint = 17,
CallerNotGateway = 18,
GasAmountExceedsMaxGasAmount = 19,
GasAmountNotAuthorized = 20,
InsufficientBalance = 21,
GasTokenContractNotSet = 22,
MaxFeeExceededMaxFeeAmount = 23,
FeeTokenContractNotSet = 24,
FeeAmountNotAuthorized = 25,
InvalidRecipient = 26,
InvalidAmount = 27,
AmountOverflow = 28,
SenderLengthMismatch = 29,
InvalidChainSender = 30,
AddressXDRRepresentationTooShort = 31,
OwnerNotSet = 32,
ChainDetailsNotFound = 33,
InvalidPublicKey = 34,
OwnerAlreadySet = 35,
UnauthorizedContractCaller = 36,
UnauthorizedBridgeCaller = 37,
TextTooLong = 38,
InvalidXDRAddress = 39,
}Variants§
InvalidSignatureCount = 1
Invalid number of signatures provided
SystemNotEnabled = 2
The system is not enabled
RecipientZeroAddress = 3
Recipient address is zero
FeeNotPaid = 4
Fee was not paid
TransactionAlreadyProcessed = 5
Transaction has already been processed
RelayerNotAuthorized = 6
Relayer is not authorized
CallerNotRelayer = 7
Caller is not a relayer
GasRefundFailed = 8
Gas refund failed
InvalidKey = 9
Invalid key provided
DuplicateSignerDetected = 10
Duplicate signer detected
InsufficientProjectSignatures = 11
Insufficient project signatures
InsufficientChainSignatures = 12
Insufficient chain signatures
InsufficientVIASignatures = 13
Insufficient VIA signatures
POSValidationFailed = 14
POS (Proof of Stake) validation failed
ChainsEndpointsMislength = 15
Chains and endpoints arrays have mismatched lengths
MissingMessageGateway = 16
Message gateway is not set
MissingChainEndpoint = 17
Chain endpoint is not configured
CallerNotGateway = 18
Caller is not the gateway
GasAmountExceedsMaxGasAmount = 19
Gas amount exceeds maximum allowed
GasAmountNotAuthorized = 20
Gas amount is not authorized
InsufficientBalance = 21
Insufficient balance
GasTokenContractNotSet = 22
Gas token contract is not set
MaxFeeExceededMaxFeeAmount = 23
Maximum fee exceeds maximum fee amount
FeeTokenContractNotSet = 24
Fee token contract is not set
FeeAmountNotAuthorized = 25
Fee amount is not authorized
InvalidRecipient = 26
Invalid recipient address
InvalidAmount = 27
Invalid amount (e.g., zero or negative)
AmountOverflow = 28
Amount overflow occurred
SenderLengthMismatch = 29
Sender length doesn’t match expected length
InvalidChainSender = 30
Invalid chain sender
AddressXDRRepresentationTooShort = 31
Address XDR representation is too short
OwnerNotSet = 32
Owner is not set
ChainDetailsNotFound = 33
Chain details not found
InvalidPublicKey = 34
Invalid public key
OwnerAlreadySet = 35
Owner has already been set
Unauthorized contract caller
Unauthorized bridge caller
TextTooLong = 38
Text message is too long
InvalidXDRAddress = 39
Invalid XDR address format
Implementations§
Trait Implementations§
impl Copy for Error
Source§impl From<&Error> for InvokeError
impl From<&Error> for InvokeError
Source§fn from(val: &Error) -> InvokeError
fn from(val: &Error) -> InvokeError
Source§impl From<Error> for InvokeError
impl From<Error> for InvokeError
Source§fn from(val: Error) -> InvokeError
fn from(val: Error) -> InvokeError
impl StructuralPartialEq for Error
Source§impl TryFrom<&InvokeError> for Error
impl TryFrom<&InvokeError> for Error
Source§type Error = InvokeError
type Error = InvokeError
Source§fn try_from(error: &InvokeError) -> Result<Self, InvokeError>
fn try_from(error: &InvokeError) -> Result<Self, InvokeError>
Source§impl TryFrom<InvokeError> for Error
impl TryFrom<InvokeError> for Error
Source§type Error = InvokeError
type Error = InvokeError
Source§fn try_from(error: InvokeError) -> Result<Self, InvokeError>
fn try_from(error: InvokeError) -> Result<Self, InvokeError>
Source§impl TryFromVal<Env, &Error> for Val
impl TryFromVal<Env, &Error> for Val
type Error = ConversionError
fn try_from_val(env: &Env, val: &&Error) -> Result<Self, ConversionError>
Source§impl TryFromVal<Env, Error> for Val
impl TryFromVal<Env, Error> for Val
type Error = ConversionError
fn try_from_val(env: &Env, val: &Error) -> Result<Self, ConversionError>
Source§impl TryFromVal<Env, Val> for Error
impl TryFromVal<Env, Val> for Error
type Error = ConversionError
fn try_from_val(env: &Env, val: &Val) -> Result<Self, ConversionError>
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W), b: &(T, U, V, W), ) -> Result<Ordering, <C as Compare<(T, U, V, W)>>::Error>
Source§impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W, X), b: &(T, U, V, W, X), ) -> Result<Ordering, <C as Compare<(T, U, V, W, X)>>::Error>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<E, T, U> FromVal<E, T> for Uwhere
E: Env,
U: TryFromVal<E, T>,
impl<E, T, U> FromVal<E, T> for Uwhere
E: Env,
U: TryFromVal<E, T>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more