Enum node_bindgen::core::NjError
source · pub enum NjError {
NapiCall(NapiStatus),
InvalidArgCount(usize, usize),
InvalidArgIndex(usize, usize),
InvalidType(String, String),
NoPlainConstructor,
Utf8Error(FromUtf8Error),
Utf8ErrorSlice(Utf8Error),
Native(*mut napi_value__),
Other(String),
}Variants§
NapiCall(NapiStatus)
InvalidArgCount(usize, usize)
InvalidArgIndex(usize, usize)
InvalidType(String, String)
NoPlainConstructor
Utf8Error(FromUtf8Error)
Utf8ErrorSlice(Utf8Error)
Native(*mut napi_value__)
Other(String)
Implementations§
Trait Implementations§
source§impl From<FromUtf8Error> for NjError
impl From<FromUtf8Error> for NjError
source§fn from(error: FromUtf8Error) -> NjError
fn from(error: FromUtf8Error) -> NjError
Converts to this type from the input type.
source§impl From<NapiStatus> for NjError
impl From<NapiStatus> for NjError
source§fn from(status: NapiStatus) -> NjError
fn from(status: NapiStatus) -> NjError
Converts to this type from the input type.