diff options
Diffstat (limited to 'src/mscorlib/src/System/AppDomainUnloadedException.cs')
-rw-r--r-- | src/mscorlib/src/System/AppDomainUnloadedException.cs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/AppDomainUnloadedException.cs b/src/mscorlib/src/System/AppDomainUnloadedException.cs new file mode 100644 index 0000000000..8ba37dc4c5 --- /dev/null +++ b/src/mscorlib/src/System/AppDomainUnloadedException.cs @@ -0,0 +1,43 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +/*============================================================================= +** +** +** +** Purpose: Exception class for attempt to access an unloaded AppDomain +** +** +=============================================================================*/ + +namespace System { + + using System.Runtime.Serialization; + + [System.Runtime.InteropServices.ComVisible(true)] + [Serializable] + public class AppDomainUnloadedException : SystemException { + public AppDomainUnloadedException() + : base(Environment.GetResourceString("Arg_AppDomainUnloadedException")) { + SetErrorCode(__HResults.COR_E_APPDOMAINUNLOADED); + } + + public AppDomainUnloadedException(String message) + : base(message) { + SetErrorCode(__HResults.COR_E_APPDOMAINUNLOADED); + } + + public AppDomainUnloadedException(String message, Exception innerException) + : base(message, innerException) { + SetErrorCode(__HResults.COR_E_APPDOMAINUNLOADED); + } + + // + //This constructor is required for serialization. + // + protected AppDomainUnloadedException(SerializationInfo info, StreamingContext context) : base(info, context) { + } + } +} + |