-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathIScriptEngineException.cs
More file actions
58 lines (48 loc) · 1.96 KB
/
IScriptEngineException.cs
File metadata and controls
58 lines (48 loc) · 1.96 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
namespace Microsoft.ClearScript
{
/// <summary>
/// Defines common script engine exception properties.
/// </summary>
public interface IScriptEngineException
{
/// <summary>
/// Gets the error message.
/// </summary>
string Message { get; }
/// <summary>
/// Gets an <c><see href="http://en.wikipedia.org/wiki/HRESULT">HRESULT</see></c> error code if one is available, zero otherwise.
/// </summary>
int HResult { get; }
/// <summary>
/// Gets the name associated with the script engine instance.
/// </summary>
string EngineName { get; }
/// <summary>
/// Gets a detailed error message if one is available, <c>null</c> otherwise.
/// </summary>
string ErrorDetails { get; }
/// <summary>
/// Gets a value that indicates whether the exception represents a fatal error.
/// </summary>
bool IsFatal { get; }
/// <summary>
/// Gets a value that indicates whether script code execution had started before the current exception was thrown.
/// </summary>
bool ExecutionStarted { get; }
/// <summary>
/// Gets the script exception that caused the current exception to be thrown, or <c>null</c> if one was not specified.
/// </summary>
dynamic ScriptException { get; }
/// <summary>
/// Gets the script exception that caused the current exception to be thrown, or <c>null</c> if one was not specified, without engaging the dynamic infrastructure.
/// </summary>
object ScriptExceptionAsObject { get; }
/// <summary>
/// Gets the host exception that caused the current exception to be thrown, or <c>null</c> if one was not specified.
/// </summary>
Exception InnerException { get; }
}
}