forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsUsageException.cs
More file actions
25 lines (24 loc) · 790 Bytes
/
JsUsageException.cs
File metadata and controls
25 lines (24 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace JavaScriptEngineSwitcher.ChakraCore.JsRt
{
/// <summary>
/// The API usage exception occurred
/// </summary>
internal sealed class JsUsageException : JsException
{
/// <summary>
/// Initializes a new instance of the <see cref="JsUsageException"/> class
/// </summary>
/// <param name="code">The error code returned</param>
public JsUsageException(JsErrorCode code)
: this(code, "A fatal exception has occurred in a JavaScript runtime")
{ }
/// <summary>
/// Initializes a new instance of the <see cref="JsUsageException"/> class
/// </summary>
/// <param name="code">The error code returned</param>
/// <param name="message">The error message</param>
public JsUsageException(JsErrorCode code, string message)
: base(code, message)
{ }
}
}