summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/src/System/Runtime/InteropServices
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/src/System/Runtime/InteropServices')
-rw-r--r--src/System.Private.CoreLib/src/System/Runtime/InteropServices/InvalidComObjectException.cs41
-rw-r--r--src/System.Private.CoreLib/src/System/Runtime/InteropServices/InvalidOleVariantTypeException.cs40
-rw-r--r--src/System.Private.CoreLib/src/System/Runtime/InteropServices/SEHException.cs58
-rw-r--r--src/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeArrayRankMismatchException.cs40
-rw-r--r--src/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeArrayTypeMismatchException.cs40
5 files changed, 0 insertions, 219 deletions
diff --git a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/InvalidComObjectException.cs b/src/System.Private.CoreLib/src/System/Runtime/InteropServices/InvalidComObjectException.cs
deleted file mode 100644
index 02f1728c38..0000000000
--- a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/InvalidComObjectException.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-// 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.
-
-using System.Runtime.CompilerServices;
-using System.Runtime.Serialization;
-
-namespace System.Runtime.InteropServices
-{
- /// <summary>
- /// The exception thrown when an invalid COM object is used. This happens
- /// when a the __ComObject type is used directly without having a backing
- /// class factory.
- /// </summary>
- [Serializable]
- [TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
- public class InvalidComObjectException : SystemException
- {
- public InvalidComObjectException()
- : base(SR.Arg_InvalidComObjectException)
- {
- HResult = HResults.COR_E_INVALIDCOMOBJECT;
- }
-
- public InvalidComObjectException(string message)
- : base(message)
- {
- HResult = HResults.COR_E_INVALIDCOMOBJECT;
- }
-
- public InvalidComObjectException(string message, Exception inner)
- : base(message, inner)
- {
- HResult = HResults.COR_E_INVALIDCOMOBJECT;
- }
-
- protected InvalidComObjectException(SerializationInfo info, StreamingContext context) : base(info, context)
- {
- }
- }
-}
diff --git a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/InvalidOleVariantTypeException.cs b/src/System.Private.CoreLib/src/System/Runtime/InteropServices/InvalidOleVariantTypeException.cs
deleted file mode 100644
index 9ec47dd87f..0000000000
--- a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/InvalidOleVariantTypeException.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// 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.
-
-using System.Runtime.CompilerServices;
-using System.Runtime.Serialization;
-
-namespace System.Runtime.InteropServices
-{
- /// <summary>
- /// Exception thrown when the type of an OLE variant that was passed into the
- /// runtime is invalid.
- /// </summary>
- [Serializable]
- [TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
- public class InvalidOleVariantTypeException : SystemException
- {
- public InvalidOleVariantTypeException()
- : base(SR.Arg_InvalidOleVariantTypeException)
- {
- HResult = HResults.COR_E_INVALIDOLEVARIANTTYPE;
- }
-
- public InvalidOleVariantTypeException(string message)
- : base(message)
- {
- HResult = HResults.COR_E_INVALIDOLEVARIANTTYPE;
- }
-
- public InvalidOleVariantTypeException(string message, Exception inner)
- : base(message, inner)
- {
- HResult = HResults.COR_E_INVALIDOLEVARIANTTYPE;
- }
-
- protected InvalidOleVariantTypeException(SerializationInfo info, StreamingContext context) : base(info, context)
- {
- }
- }
-}
diff --git a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/SEHException.cs b/src/System.Private.CoreLib/src/System/Runtime/InteropServices/SEHException.cs
deleted file mode 100644
index 846ea4ea3d..0000000000
--- a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/SEHException.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-// 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 all Structured Exception Handling code.
-**
-**
-=============================================================================*/
-
-using System.Runtime.CompilerServices;
-using System.Runtime.Serialization;
-
-namespace System.Runtime.InteropServices
-{
- /// <summary>
- /// Exception for Structured Exception Handler exceptions.
- /// </summary>
- [Serializable]
- [TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
- public class SEHException : ExternalException
- {
- public SEHException()
- : base()
- {
- HResult = HResults.E_FAIL;
- }
-
- public SEHException(string message)
- : base(message)
- {
- HResult = HResults.E_FAIL;
- }
-
- public SEHException(string message, Exception inner)
- : base(message, inner)
- {
- HResult = HResults.E_FAIL;
- }
-
- protected SEHException(SerializationInfo info, StreamingContext context) : base(info, context)
- {
- }
-
- // Exceptions can be resumable, meaning a filtered exception
- // handler can correct the problem that caused the exception,
- // and the code will continue from the point that threw the
- // exception.
- //
- // Resumable exceptions aren't implemented in this version,
- // but this method exists and always returns false.
- //
- public virtual bool CanResume() => false;
- }
-}
diff --git a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeArrayRankMismatchException.cs b/src/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeArrayRankMismatchException.cs
deleted file mode 100644
index 661810cf02..0000000000
--- a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeArrayRankMismatchException.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// 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.
-
-using System.Runtime.CompilerServices;
-using System.Runtime.Serialization;
-
-namespace System.Runtime.InteropServices
-{
- /// <summary>
- /// The exception is thrown when the runtime rank of a safe array is different
- /// than the array rank specified in the metadata.
- /// </summary>
- [Serializable]
- [TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
- public class SafeArrayRankMismatchException : SystemException
- {
- public SafeArrayRankMismatchException()
- : base(SR.Arg_SafeArrayRankMismatchException)
- {
- HResult = HResults.COR_E_SAFEARRAYRANKMISMATCH;
- }
-
- public SafeArrayRankMismatchException(string message)
- : base(message)
- {
- HResult = HResults.COR_E_SAFEARRAYRANKMISMATCH;
- }
-
- public SafeArrayRankMismatchException(string message, Exception inner)
- : base(message, inner)
- {
- HResult = HResults.COR_E_SAFEARRAYRANKMISMATCH;
- }
-
- protected SafeArrayRankMismatchException(SerializationInfo info, StreamingContext context) : base(info, context)
- {
- }
- }
-}
diff --git a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeArrayTypeMismatchException.cs b/src/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeArrayTypeMismatchException.cs
deleted file mode 100644
index c094ec162a..0000000000
--- a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeArrayTypeMismatchException.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// 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.
-
-using System.Runtime.CompilerServices;
-using System.Runtime.Serialization;
-
-namespace System.Runtime.InteropServices
-{
- /// <summary>
- /// The exception is thrown when the runtime type of an array is different
- /// than the safe array sub type specified in the metadata.
- /// </summary>
- [Serializable]
- [TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
- public class SafeArrayTypeMismatchException : SystemException
- {
- public SafeArrayTypeMismatchException()
- : base(SR.Arg_SafeArrayTypeMismatchException)
- {
- HResult = HResults.COR_E_SAFEARRAYTYPEMISMATCH;
- }
-
- public SafeArrayTypeMismatchException(string message)
- : base(message)
- {
- HResult = HResults.COR_E_SAFEARRAYTYPEMISMATCH;
- }
-
- public SafeArrayTypeMismatchException(string message, Exception inner)
- : base(message, inner)
- {
- HResult = HResults.COR_E_SAFEARRAYTYPEMISMATCH;
- }
-
- protected SafeArrayTypeMismatchException(SerializationInfo info, StreamingContext context) : base(info, context)
- {
- }
- }
-}