diff options
Diffstat (limited to 'src/mscorlib/src/System/InsufficientExecutionStackException.cs')
-rw-r--r-- | src/mscorlib/src/System/InsufficientExecutionStackException.cs | 45 |
1 files changed, 15 insertions, 30 deletions
diff --git a/src/mscorlib/src/System/InsufficientExecutionStackException.cs b/src/mscorlib/src/System/InsufficientExecutionStackException.cs index 6b02f46f29..b9a4a12ddd 100644 --- a/src/mscorlib/src/System/InsufficientExecutionStackException.cs +++ b/src/mscorlib/src/System/InsufficientExecutionStackException.cs @@ -2,46 +2,31 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -/*============================================================================= -** -** -** -** Purpose: The exception class used when there is insufficient execution stack -** to allow most Framework methods to execute. -** -** -=============================================================================*/ - -namespace System { - - using System; - using System.Runtime.Serialization; +using System.Runtime.Serialization; +namespace System +{ [Serializable] - public sealed class InsufficientExecutionStackException : SystemException + public sealed class InsufficientExecutionStackException : SystemException { public InsufficientExecutionStackException() - : base(Environment.GetResourceString("Arg_InsufficientExecutionStackException")) - { - SetErrorCode(__HResults.COR_E_INSUFFICIENTEXECUTIONSTACK); - } - - public InsufficientExecutionStackException(String message) - : base(message) + : base(SR.Arg_InsufficientExecutionStackException) { - SetErrorCode(__HResults.COR_E_INSUFFICIENTEXECUTIONSTACK); + HResult = __HResults.COR_E_INSUFFICIENTEXECUTIONSTACK; } - - public InsufficientExecutionStackException(String message, Exception innerException) - : base(message, innerException) + + public InsufficientExecutionStackException(String message) + : base(message) { - SetErrorCode(__HResults.COR_E_INSUFFICIENTEXECUTIONSTACK); + HResult = __HResults.COR_E_INSUFFICIENTEXECUTIONSTACK; } - private InsufficientExecutionStackException(SerializationInfo info, StreamingContext context) - : base(info, context) + public InsufficientExecutionStackException(String message, Exception innerException) + : base(message, innerException) { + HResult = __HResults.COR_E_INSUFFICIENTEXECUTIONSTACK; } - + + internal InsufficientExecutionStackException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } |