Fix pragma warning restore (dotnet/coreclr#26389)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / ExecutionEngineException.cs
blob681f82b0f508cb0cd4c9cf553c65183bcb0686e4
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.
5 //
6 //
7 /*=============================================================================
8 **
9 **
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.
16 =============================================================================*/
18 using System.Runtime.Serialization;
20 namespace System
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.")]
23 [Serializable]
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)
34 : base(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)