Struct napi::NapiError
[−]
[src]
pub struct NapiError { pub kind: NapiErrorKind, pub message: Option<String>, pub exception: Option<napi_value>, }
Fields
kind: NapiErrorKind
message: Option<String>
exception: Option<napi_value>
Methods
impl NapiError
[src]
fn error(env: &NapiEnv, message: &NapiString) -> NapiError
[src]
fn type_error(env: &NapiEnv, message: &NapiString) -> NapiError
[src]
fn range_error(env: &NapiEnv, message: &NapiString) -> NapiError
[src]
Trait Implementations
impl Clone for NapiError
[src]
fn clone(&self) -> NapiError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for NapiError
[src]
impl Error for NapiError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more