Enum novax_executor::ExecutorError
source · pub enum ExecutorError {
NetworkQuery(NetworkQueryError),
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.
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<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§fn from(value: MockDeployError) -> Self
fn from(value: MockDeployError) -> Self
Performs the conversion from a MockDeployError to an ExecutorError.
Parameters
value: TheMockDeployErrorvalue to be converted.
Returns
ExecutorError: AnExecutorErrorinstance containing the providedMockDeployErrorvalue.
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§fn from(value: NetworkQueryError) -> Self
fn from(value: NetworkQueryError) -> Self
Performs the conversion from a NetworkQueryError to an ExecutorError.
Parameters
value: TheNetworkQueryErrorvalue to be converted.
Returns
ExecutorError: AnExecutorErrorinstance containing the providedNetworkQueryErrorvalue.
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 ==.