diff options
Diffstat (limited to 'src/mscorlib/src/System/ExecutionEngineException.cs')
-rw-r--r-- | src/mscorlib/src/System/ExecutionEngineException.cs | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/src/mscorlib/src/System/ExecutionEngineException.cs b/src/mscorlib/src/System/ExecutionEngineException.cs index 5b2592cca9..bebfd493a0 100644 --- a/src/mscorlib/src/System/ExecutionEngineException.cs +++ b/src/mscorlib/src/System/ExecutionEngineException.cs @@ -15,30 +15,33 @@ ** =============================================================================*/ -namespace System { +using System; +using System.Runtime.Serialization; - using System; - using System.Runtime.Serialization; +namespace System +{ [Obsolete("This type previously indicated an unspecified fatal error in the runtime. The runtime no longer raises this exception so this type is obsolete.")] - [System.Runtime.InteropServices.ComVisible(true)] [Serializable] - public sealed class ExecutionEngineException : SystemException { - public ExecutionEngineException() - : base(Environment.GetResourceString("Arg_ExecutionEngineException")) { - SetErrorCode(__HResults.COR_E_EXECUTIONENGINE); + public sealed class ExecutionEngineException : SystemException + { + public ExecutionEngineException() + : base(SR.Arg_ExecutionEngineException) + { + HResult = __HResults.COR_E_EXECUTIONENGINE; } - - public ExecutionEngineException(String message) - : base(message) { - SetErrorCode(__HResults.COR_E_EXECUTIONENGINE); - } - - public ExecutionEngineException(String message, Exception innerException) - : base(message, innerException) { - SetErrorCode(__HResults.COR_E_EXECUTIONENGINE); + + public ExecutionEngineException(String message) + : base(message) + { + HResult = __HResults.COR_E_EXECUTIONENGINE; } - internal ExecutionEngineException(SerializationInfo info, StreamingContext context) : base(info, context) { + public ExecutionEngineException(String message, Exception innerException) + : base(message, innerException) + { + HResult = __HResults.COR_E_EXECUTIONENGINE; } + + internal ExecutionEngineException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } |