Enum quickjspp::ExecutionError
source · pub enum ExecutionError {
InputWithZeroBytes,
Conversion(ValueError),
Internal(String),
Exception(JsValue),
OutOfMemory,
// some variants omitted
}
Expand description
Error on Javascript execution.
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<ExecutionError> for Error
impl From<ExecutionError> for Error
source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Converts to this type from the input type.
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 ==
.impl StructuralPartialEq for ExecutionError
Auto Trait Implementations§
impl RefUnwindSafe for ExecutionError
impl !Send for ExecutionError
impl !Sync for ExecutionError
impl Unpin for ExecutionError
impl UnwindSafe for ExecutionError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more