ExecutionEngineException.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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;
  17. using System.Runtime.Serialization;
  18. namespace System
  19. {
  20. [Obsolete("This type previously indicated an unspecified fatal error in the runtime. The runtime no longer raises this exception so this type is obsolete.")]
  21. [Serializable]
  22. [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
  23. public sealed class ExecutionEngineException : SystemException
  24. {
  25. public ExecutionEngineException()
  26. : base(SR.Arg_ExecutionEngineException)
  27. {
  28. HResult = HResults.COR_E_EXECUTIONENGINE;
  29. }
  30. public ExecutionEngineException(string message)
  31. : base(message)
  32. {
  33. HResult = HResults.COR_E_EXECUTIONENGINE;
  34. }
  35. public ExecutionEngineException(string message, Exception innerException)
  36. : base(message, innerException)
  37. {
  38. HResult = HResults.COR_E_EXECUTIONENGINE;
  39. }
  40. internal ExecutionEngineException(SerializationInfo info, StreamingContext context) : base(info, context)
  41. {
  42. }
  43. }
  44. }