Enum air::PreparationError
source · pub enum PreparationError {
AIRParseError(String),
DataDeFailed {
data: Vec<u8>,
error: SerdeJsonError,
},
DataDeFailedWithVersions {
data: Vec<u8>,
error: SerdeJsonError,
versions: Versions,
},
CallResultsDeFailed {
call_results: Vec<u8>,
error: SerdeJsonError,
},
UnsupportedInterpreterVersion {
actual_version: Version,
required_version: Version,
},
}
Expand description
Errors happened during the interpreter preparation step.
Variants§
AIRParseError(String)
Error occurred while parsing AIR script
DataDeFailed
Errors occurred on executed trace deserialization.
DataDeFailedWithVersions
Errors occurred on executed trace deserialization when it was possible to recover versions.
CallResultsDeFailed
Error occurred on call results deserialization.
UnsupportedInterpreterVersion
Error occurred when a version of interpreter produced supplied data is less then minimal.
Implementations§
source§impl PreparationError
impl PreparationError
pub fn data_de_failed(data: Vec<u8>, error: SerdeJsonError) -> Self
pub fn data_de_failed_with_versions( data: Vec<u8>, error: SerdeJsonError, versions: Versions ) -> Self
pub fn call_results_de_failed( call_results: Vec<u8>, error: SerdeJsonError ) -> Self
pub fn unsupported_interpreter_version( actual_version: Version, required_version: Version ) -> Self
Trait Implementations§
source§impl Debug for PreparationError
impl Debug for PreparationError
source§impl Display for PreparationError
impl Display for PreparationError
source§impl Error for PreparationError
impl Error for PreparationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()