pub enum SorobanHelperError {
Show 13 variants
TransactionFailed(String),
TransactionSimulationFailed(String),
ContractCodeAlreadyExists,
NetworkRequestFailed(String),
SigningFailed(String),
XdrEncodingFailed(String),
InvalidArgument(String),
TransactionBuildFailed(String),
Unauthorized(String),
ContractDeployedConfigsNotSet,
FileReadError(String),
ConversionError(String),
NotSupported(String),
}
Expand description
Errors that can occur when using the Soroban helpers library.
This enum covers errors from various operations including transaction submission, signing, contract deployment, and network communication.
Variants§
TransactionFailed(String)
Error when a transaction fails to execute successfully.
TransactionSimulationFailed(String)
Error when a transaction simulation fails.
ContractCodeAlreadyExists
Error when attempting to upload contract code that already exists.
NetworkRequestFailed(String)
Error when a network request to the Soroban RPC server fails.
SigningFailed(String)
Error when a signing operation fails.
XdrEncodingFailed(String)
Error when XDR encoding or decoding fails.
InvalidArgument(String)
Error when an invalid argument is provided to a function.
TransactionBuildFailed(String)
Error when building a transaction fails.
Error when an operation requires authorization that isn’t present.
ContractDeployedConfigsNotSet
Error when attempting to invoke a contract without setting deployment configs.
FileReadError(String)
Error when a file operation fails.
ConversionError(String)
Error when a conversion fails.
NotSupported(String)
Trait Implementations§
Source§impl Clone for SorobanHelperError
impl Clone for SorobanHelperError
Source§fn clone(&self) -> SorobanHelperError
fn clone(&self) -> SorobanHelperError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SorobanHelperError
impl Debug for SorobanHelperError
Source§impl Display for SorobanHelperError
impl Display for SorobanHelperError
Source§impl Error for SorobanHelperError
impl Error for SorobanHelperError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for SorobanHelperError
Convert XDR errors into SorobanHelperError
impl From<Error> for SorobanHelperError
Convert XDR errors into SorobanHelperError
Source§impl From<Error> for SorobanHelperError
Convert IO errors into SorobanHelperError
impl From<Error> for SorobanHelperError
Convert IO errors into SorobanHelperError
Source§impl PartialEq for SorobanHelperError
impl PartialEq for SorobanHelperError
impl Eq for SorobanHelperError
impl StructuralPartialEq for SorobanHelperError
Auto Trait Implementations§
impl Freeze for SorobanHelperError
impl RefUnwindSafe for SorobanHelperError
impl Send for SorobanHelperError
impl Sync for SorobanHelperError
impl Unpin for SorobanHelperError
impl UnwindSafe for SorobanHelperError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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