Struct ErrorOptions
#[repr(transparent)]
pub struct ErrorOptions { /* private fields */ }
The options dictionary accepted as the second argument to the
Error constructor (and other built-in error constructors such as
AggregateError). Its sole standard property is cause, which
indicates the original cause of the error.
Implementations
impl ErrorOptions
fn get_cause(&self) -> JsValueThe
causeproperty indicates the underlying cause of an error.
impl ErrorOptions
fn set_cause(&self, cause: &JsValue)Sets the
causeproperty of thisErrorOptionsdictionary.
impl ErrorOptions
fn new(cause: &JsValue) -> SelfConstruct a new
ErrorOptionsdictionary with the givencause.
Trait Implementations
impl AsRef<ErrorOptions> for ErrorOptions
fn as_ref(&self) -> &ErrorOptions
impl AsRef<JsValue> for ErrorOptions
fn as_ref(&self) -> &JsValue
impl AsRef<Object> for ErrorOptions
fn as_ref(&self) -> &Object
impl Clone for ErrorOptions
fn clone(&self) -> Self
impl Debug for ErrorOptions
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Deref for ErrorOptions
type Target = Object;fn deref(&self) -> &Object
impl Eq for ErrorOptions
impl ErasableGeneric for ErrorOptions
type Repr = JsValue;
impl From<JsValue> for ErrorOptions
fn from(obj: JsValue) -> Self
impl FromWasmAbi for ErrorOptions
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl IntoJsGeneric for ErrorOptions
where
ErrorOptions: JsGeneric,
type JsCanon = ErrorOptions;fn to_js(self) -> ErrorOptions
impl IntoWasmAbi for ErrorOptions
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl JsCast for ErrorOptions
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl LongRefFromWasmAbi for ErrorOptions
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = ErrorOptions;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl OptionFromWasmAbi for ErrorOptions
fn is_none(abi: &Self::Abi) -> bool
impl OptionIntoWasmAbi for ErrorOptions
fn none() -> Self::Abi
impl PartialEq for ErrorOptions
fn eq(&self, other: &Self) -> bool
impl Promising for ErrorOptions
type Resolution = ErrorOptions;
impl RefFromWasmAbi for ErrorOptions
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<ErrorOptions>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl StructuralPartialEq for ErrorOptions
impl UpcastFrom<ErrorOptions> for ErrorOptions
impl WasmDescribe for ErrorOptions
fn describe()