Initial commit
[mono.git] / mcs / class / referencesource / mscorlib / system / runtime / interopservices / invalidolevarianttypeexception.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 /*=============================================================================
7 **
8 ** Class: InvalidOleVariantTypeException
9 **
10 ** Purpose: The type of an OLE variant that was passed into the runtime is 
11 **            invalid.
12 **
13 =============================================================================*/
14
15 namespace System.Runtime.InteropServices {
16     
17     using System;
18     using System.Runtime.Serialization;
19
20 [System.Runtime.InteropServices.ComVisible(true)]
21     [Serializable] public class InvalidOleVariantTypeException : SystemException {
22         public InvalidOleVariantTypeException() 
23             : base(Environment.GetResourceString("Arg_InvalidOleVariantTypeException")) {
24             SetErrorCode(__HResults.COR_E_INVALIDOLEVARIANTTYPE);
25         }
26     
27         public InvalidOleVariantTypeException(String message) 
28             : base(message) {
29             SetErrorCode(__HResults.COR_E_INVALIDOLEVARIANTTYPE);
30         }
31     
32         public InvalidOleVariantTypeException(String message, Exception inner) 
33             : base(message, inner) {
34             SetErrorCode(__HResults.COR_E_INVALIDOLEVARIANTTYPE);
35         }
36
37         protected InvalidOleVariantTypeException(SerializationInfo info, StreamingContext context) : base(info, context) {
38         }
39     }
40 }