2003-08-06 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / InvalidComObjectException.cs
1 //
2 // System.Runtime.InteropServices.InvalidComObjectException.cs
3 //
4 // Author:
5 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
6 //
7
8 using System;
9 using System.Runtime.Serialization;
10
11 namespace System.Runtime.InteropServices
12 {
13         public class InvalidComObjectException : SystemException
14         {
15                 private const int ErrorCode = -2146233049; // = 0x80131527
16
17                 public InvalidComObjectException ()
18                         : base (Locale.GetText ("Invalid COM object is used"))
19                 {
20                         this.HResult = ErrorCode;
21                 }
22
23                 public InvalidComObjectException (string message)
24                         : base (message)
25                 {
26                         this.HResult = ErrorCode;
27                 }
28
29                 public InvalidComObjectException (string message, Exception inner)
30                         : base (message, inner)
31                 {
32                         this.HResult = ErrorCode;
33                 }
34
35                 protected InvalidComObjectException (SerializationInfo info, StreamingContext context)
36                         : base (info, context)
37                 {
38                 }
39         }
40 }