1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 
5 //
6 //
7 /*=============================================================================
8 **
9 **
10 **
11 ** Purpose: The exception class for misc execution engine exceptions.
12 **          Currently, its only used as a placeholder type when the EE
13 **          does a FailFast.
14 **
15 **
16 =============================================================================*/
17 
18 using System;
19 using System.Runtime.Serialization;
20 
21 namespace System
22 {
23     [Obsolete("This type previously indicated an unspecified fatal error in the runtime. The runtime no longer raises this exception so this type is obsolete.")]
24     [Serializable]
25     [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
26     public sealed class ExecutionEngineException : SystemException
27     {
ExecutionEngineException()28         public ExecutionEngineException()
29             : base(SR.Arg_ExecutionEngineException)
30         {
31             HResult = HResults.COR_E_EXECUTIONENGINE;
32         }
33 
ExecutionEngineException(String message)34         public ExecutionEngineException(String message)
35             : base(message)
36         {
37             HResult = HResults.COR_E_EXECUTIONENGINE;
38         }
39 
ExecutionEngineException(String message, Exception innerException)40         public ExecutionEngineException(String message, Exception innerException)
41             : base(message, innerException)
42         {
43             HResult = HResults.COR_E_EXECUTIONENGINE;
44         }
45 
ExecutionEngineException(SerializationInfo info, StreamingContext context)46         internal ExecutionEngineException(SerializationInfo info, StreamingContext context) : base(info, context)
47         {
48         }
49     }
50 }
51