You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/error_handling.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ If C++ exceptions are enabled (for more info see: [Setup](setup.md)), then the
14
14
`Napi::Error` class extends `std::exception` and enables integrated
15
15
error-handling for C++ exceptions and JavaScript exceptions.
16
16
17
-
Note, that due to limitations of the N-API, if one attempt to cast the error object thrown as a primitive, an
18
-
wrapped object will be received instead. (With properties ```isWrapObject``` and ```errorVal``` containing the primitive value thrown)
17
+
Note, that due to limitations of the N-API, if one attempts to cast the error object wrapping a primitive inside a C++ addon, the wrapped object
18
+
will be received instead. (With properties ```4b3d96fd-fb87-4951-a979-eb4f9d2f2ce9-isWrapObject``` and ```errorVal``` containing the primitive value thrown)
19
19
20
20
21
21
The following sections explain the approach for each case:
0 commit comments