pub enum Exception {
Show 19 variants
SyntaxTreeError(ParseError),
SyntaxErrorForInMultipleVar(),
SyntaxErrorContinueLabelNotALoop(Identifier),
ReferenceNotAnObject(Interpreted),
ReferenceNotFound(Identifier),
TypeErrorSetReadonly(Interpreted, JSString),
TypeErrorNotConfigurable(Interpreted, JSString),
TypeErrorGetProperty(Interpreted, JSString),
TypeErrorCannotAssign(Interpreted),
TypeErrorConstAssign(Interpreted),
TypeErrorNotCallable(Interpreted),
TypeErrorNotArraylike(Interpreted),
TypeErrorInstanceRequired(Interpreted, JSString),
TypeErrorInvalidDescriptor(Interpreted),
TypeErrorInvalidPrototype(Interpreted),
JumpReturn(Interpreted),
JumpBreak(Option<Identifier>),
JumpContinue(Option<Identifier>),
UserThrown(JSValue),
}
Variants
SyntaxTreeError(ParseError)
SyntaxErrorForInMultipleVar()
SyntaxErrorContinueLabelNotALoop(Identifier)
ReferenceNotAnObject(Interpreted)
ReferenceNotFound(Identifier)
TypeErrorSetReadonly(Interpreted, JSString)
TypeErrorNotConfigurable(Interpreted, JSString)
TypeErrorGetProperty(Interpreted, JSString)
TypeErrorCannotAssign(Interpreted)
TypeErrorConstAssign(Interpreted)
TypeErrorNotCallable(Interpreted)
TypeErrorNotArraylike(Interpreted)
TypeErrorInstanceRequired(Interpreted, JSString)
TypeErrorInvalidDescriptor(Interpreted)
TypeErrorInvalidPrototype(Interpreted)
JumpReturn(Interpreted)
JumpBreak(Option<Identifier>)
JumpContinue(Option<Identifier>)
UserThrown(JSValue)
Implementations
sourceimpl Exception
impl Exception
pub fn instance_required<V>(arg: V, of: &str) -> Exception where
Interpreted: From<V>,
Trait Implementations
sourceimpl From<ParseError> for Exception
impl From<ParseError> for Exception
sourcefn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Exception
Auto Trait Implementations
impl RefUnwindSafe for Exception
impl !Send for Exception
impl !Sync for Exception
impl Unpin for Exception
impl UnwindSafe for Exception
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more