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.
7 /*=============================================================================
11 ** Purpose: The exception class for misc execution engine exceptions.
12 ** Currently, its only used as a placeholder type when the EE
16 =============================================================================*/
18 using System
.Runtime
.Serialization
;
22 [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 [System
.Runtime
.CompilerServices
.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
25 public sealed class ExecutionEngineException
: SystemException
27 public ExecutionEngineException()
28 : base(SR
.Arg_ExecutionEngineException
)
30 HResult
= HResults
.COR_E_EXECUTIONENGINE
;
33 public ExecutionEngineException(string? message
)
36 HResult
= HResults
.COR_E_EXECUTIONENGINE
;
39 public ExecutionEngineException(string? message
, Exception
? innerException
)
40 : base(message
, innerException
)
42 HResult
= HResults
.COR_E_EXECUTIONENGINE
;
45 private ExecutionEngineException(SerializationInfo info
, StreamingContext context
) : base(info
, context
)