Function mozjs::jsapi::GetErrorTypeName

source ·
pub unsafe extern "C" fn GetErrorTypeName(
    cx: *mut JSContext,
    exnType: i16
) -> *mut JSLinearString
Expand description

Get an error type name from a JSExnType constant. Returns nullptr for invalid arguments and JSEXN_INTERNALERR