pub enum ExecutorError {
    NetworkQuery(NetworkQueryError),
    Gateway(GatewayError),
    Simulation(SimulationError),
    DataError(DataError),
    MockDeploy(MockDeployError),
}
Expand description

An enumeration representing the various types of errors that can be encountered within the executor context.

Variants§

§

NetworkQuery(NetworkQueryError)

This variant wraps errors encountered during network queries, which may include issues such as connection failures or malformed requests. The wrapped NetworkQueryError provides more detailed information about the nature of the network-related error that occurred.

§

Gateway(GatewayError)

Represents errors specifically related to interactions with the MultiversX gateway. This can include HTTP request issues, response parsing errors, and other anomalies encountered while communicating with the gateway. The contained GatewayError elaborates on the specifics of the encountered issue, aiding in diagnosis and resolution.

§

Simulation(SimulationError)

Represents errors that occur during the simulation of blockchain transactions. These simulations are run on real nodes using actual data, providing a realistic environment for transaction execution without committing the results to the blockchain. The wrapped SimulationError offers detailed information about issues encountered during this simulation process, enabling developers to understand and rectify potential problems before live deployment.

§

DataError(DataError)

Wraps errors related to data operations, usually arising from the novax-data crate. These may include errors related to data parsing, validation, or any other data-related operation. The wrapped DataError provides more detailed information about the nature of the data-related error that occurred.

§

MockDeploy(MockDeployError)

This variant wraps errors encountered during mock deployments. This is particularly useful when using the MockExecutor for testing or simulation purposes. The wrapped MockDeployError provides more detailed information about the nature of the mock deployment-related error that occurred.

Trait Implementations§

source§

impl Clone for ExecutorError

source§

fn clone(&self) -> ExecutorError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExecutorError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ExecutorError

source§

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 From<DataError> for ExecutorError

An implementation of the From trait to allow for easy conversions from DataError to ExecutorError.

source§

fn from(value: DataError) -> Self

Converts to this type from the input type.
source§

impl From<GatewayError> for ExecutorError

source§

fn from(value: GatewayError) -> Self

Converts to this type from the input type.
source§

impl From<MockDeployError> for ExecutorError

An implementation of the From trait to allow for easy conversions from MockDeployError to ExecutorError.

This implementation facilitates the propagation of MockDeployErrors through the code, by allowing them to be converted into the more general ExecutorError type.

source§

fn from(value: MockDeployError) -> Self

Performs the conversion from a MockDeployError to an ExecutorError.

§Parameters
  • value: The MockDeployError value to be converted.
§Returns
  • ExecutorError: An ExecutorError instance containing the provided MockDeployError value.
source§

impl From<NetworkQueryError> for ExecutorError

An implementation of the From trait to allow for easy conversions from NetworkQueryError to ExecutorError.

This implementation facilitates the propagation of NetworkQueryErrors through the code, by allowing them to be converted into the more general ExecutorError type.

source§

fn from(value: NetworkQueryError) -> Self

Performs the conversion from a NetworkQueryError to an ExecutorError.

§Parameters
  • value: The NetworkQueryError value to be converted.
§Returns
  • ExecutorError: An ExecutorError instance containing the provided NetworkQueryError value.
source§

impl From<SimulationError> for ExecutorError

source§

fn from(value: SimulationError) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ExecutorError

source§

fn eq(&self, other: &ExecutorError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ExecutorError

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for ExecutorError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> InterpretableFrom<&T> for T
where T: Clone,

source§

fn interpret_from(from: &T, _context: &InterpreterContext) -> T

source§

impl<T> InterpretableFrom<T> for T

source§

fn interpret_from(from: T, _context: &InterpreterContext) -> T

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ReconstructableFrom<&T> for T
where T: Clone,

source§

impl<T> ReconstructableFrom<T> for T

source§

fn reconstruct_from(from: T, _builder: &ReconstructorContext) -> T

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,