Enum quick_js::ExecutionError
source · #[non_exhaustive]
pub enum ExecutionError {
InputWithZeroBytes,
Conversion(ValueError),
Internal(String),
Exception(JsValue),
OutOfMemory,
}Expand description
Error on Javascript execution.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InputWithZeroBytes
Code to be executed contained zero-bytes.
Conversion(ValueError)
Value conversion failed. (either input arguments or result value).
Internal(String)
Internal error.
Exception(JsValue)
JS Exception was thrown.
OutOfMemory
JS Runtime exceeded the memory limit.
Trait Implementations§
source§impl Debug for ExecutionError
impl Debug for ExecutionError
source§impl Display for ExecutionError
impl Display for ExecutionError
source§impl Error for ExecutionError
impl Error for ExecutionError
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()
source§impl From<ValueError> for ExecutionError
impl From<ValueError> for ExecutionError
source§fn from(v: ValueError) -> Self
fn from(v: ValueError) -> Self
Converts to this type from the input type.
source§impl PartialEq<ExecutionError> for ExecutionError
impl PartialEq<ExecutionError> for ExecutionError
source§fn eq(&self, other: &ExecutionError) -> bool
fn eq(&self, other: &ExecutionError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.