pub enum TxExecutionError {
ActionError(ActionError),
InvalidTxError(InvalidTxError),
}Expand description
Error returned in the ExecutionOutcome in case of failure
JSON schema
{
"description": "Error returned in the ExecutionOutcome in case of failure",
"oneOf": [
{
"description": "An error happened during Action execution",
"type": "object",
"required": [
"ActionError"
],
"properties": {
"ActionError": {
"$ref": "#/components/schemas/ActionError"
}
},
"additionalProperties": false
},
{
"description": "An error happened during Transaction execution",
"type": "object",
"required": [
"InvalidTxError"
],
"properties": {
"InvalidTxError": {
"$ref": "#/components/schemas/InvalidTxError"
}
},
"additionalProperties": false
}
]
}Variants§
ActionError(ActionError)
An error happened during Action execution
InvalidTxError(InvalidTxError)
An error happened during Transaction execution
Trait Implementations§
Source§impl Clone for TxExecutionError
impl Clone for TxExecutionError
Source§fn clone(&self) -> TxExecutionError
fn clone(&self) -> TxExecutionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TxExecutionError
impl Debug for TxExecutionError
Source§impl<'de> Deserialize<'de> for TxExecutionError
impl<'de> Deserialize<'de> for TxExecutionError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TxExecutionError
impl Display for TxExecutionError
Source§impl Error for TxExecutionError
impl Error for TxExecutionError
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<&TxExecutionError> for TxExecutionError
impl From<&TxExecutionError> for TxExecutionError
Source§fn from(value: &TxExecutionError) -> Self
fn from(value: &TxExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<ActionError> for TxExecutionError
impl From<ActionError> for TxExecutionError
Source§fn from(value: ActionError) -> Self
fn from(value: ActionError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidTxError> for TxExecutionError
impl From<InvalidTxError> for TxExecutionError
Source§fn from(value: InvalidTxError) -> Self
fn from(value: InvalidTxError) -> Self
Converts to this type from the input type.
Source§impl From<TxExecutionError> for ExecutionStatusView
impl From<TxExecutionError> for ExecutionStatusView
Source§fn from(value: TxExecutionError) -> Self
fn from(value: TxExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<TxExecutionError> for FinalExecutionStatus
impl From<TxExecutionError> for FinalExecutionStatus
Source§fn from(value: TxExecutionError) -> Self
fn from(value: TxExecutionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TxExecutionError
impl RefUnwindSafe for TxExecutionError
impl Send for TxExecutionError
impl Sync for TxExecutionError
impl Unpin for TxExecutionError
impl UnwindSafe for TxExecutionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.