ExecutionEngineException.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. ** Purpose: The exception class for misc execution engine exceptions.
  11. ** Currently, its only used as a placeholder type when the EE
  12. ** does a FailFast.
  13. **
  14. **
  15. =============================================================================*/
  16. using System.Runtime.Serialization;
  17. namespace System
  18. {
  19. [Obsolete("This type previously indicated an unspecified fatal error in the runtime. The runtime no longer raises this exception so this type is obsolete.")]
  20. [Serializable]
  21. [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
  22. public sealed class ExecutionEngineException : SystemException
  23. {
  24. public ExecutionEngineException()
  25. : base(SR.Arg_ExecutionEngineException)
  26. {
  27. HResult = HResults.COR_E_EXECUTIONENGINE;
  28. }
  29. public ExecutionEngineException(string? message)
  30. : base(message)
  31. {
  32. HResult = HResults.COR_E_EXECUTIONENGINE;
  33. }
  34. public ExecutionEngineException(string? message, Exception? innerException)
  35. : base(message, innerException)
  36. {
  37. HResult = HResults.COR_E_EXECUTIONENGINE;
  38. }
  39. private ExecutionEngineException(SerializationInfo info, StreamingContext context) : base(info, context)
  40. {
  41. }
  42. }
  43. }