Enum novax_executor::ExecutorError
source · 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
impl Clone for ExecutorError
source§fn clone(&self) -> ExecutorError
fn clone(&self) -> ExecutorError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExecutorError
impl Debug for ExecutorError
source§impl<'de> Deserialize<'de> for ExecutorError
impl<'de> Deserialize<'de> for ExecutorError
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>,
source§impl From<DataError> for ExecutorError
impl From<DataError> for ExecutorError
An implementation of the From trait to allow for easy conversions from DataError to ExecutorError.
source§impl From<GatewayError> for ExecutorError
impl From<GatewayError> for ExecutorError
source§fn from(value: GatewayError) -> Self
fn from(value: GatewayError) -> Self
source§impl From<MockDeployError> for ExecutorError
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§impl From<NetworkQueryError> for ExecutorError
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§impl From<SimulationError> for ExecutorError
impl From<SimulationError> for ExecutorError
source§fn from(value: SimulationError) -> Self
fn from(value: SimulationError) -> Self
source§impl PartialEq for ExecutorError
impl PartialEq for ExecutorError
source§fn eq(&self, other: &ExecutorError) -> bool
fn eq(&self, other: &ExecutorError) -> bool
self and other values to be equal, and is used
by ==.