JSError.ThrowError method (1 of 4)
C#
public void ThrowError()
See Also
- struct JSError
- namespace Microsoft.JavaScript.NodeApi
JSError.ThrowError method (2 of 4)
Throws a JS error for a .NET exception.
C#
public static void ThrowError(Exception exception)
Remarks
Requires a current JSValueScope
, but does NOT require a current JSRuntimeContext
, so it can be safely used from "no-context" callbacks.
See Also
- struct JSError
- namespace Microsoft.JavaScript.NodeApi
JSError.ThrowError method (3 of 4)
C#
public static void ThrowError(string message)
See Also
- struct JSError
- namespace Microsoft.JavaScript.NodeApi
JSError.ThrowError method (4 of 4)
C#
public static void ThrowError(string code, string message)
See Also
- struct JSError
- namespace Microsoft.JavaScript.NodeApi