2003-08-06 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / SafeArrayRankMismatchException.cs
1 //
2 // System.Runtime.InteropServices.SafeArrayRankMismatchException.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 SafeArrayRankMismatchException : SystemException
14         {
15                 private const int ErrorCode = -2146233032; // = 0x80131538
16
17                 public SafeArrayRankMismatchException ()
18                         : base (Locale.GetText ("The incoming SAVEARRAY does not match the rank of the expected managed signature"))
19                 {
20                         this.HResult = ErrorCode;
21                 }
22
23                 public SafeArrayRankMismatchException (string message)
24                         : base (message)
25                 {
26                         this.HResult = ErrorCode;
27                 }
28
29                 public SafeArrayRankMismatchException (string message, Exception inner)
30                         : base (message, inner)
31                 {
32                         this.HResult = ErrorCode;
33                 }
34
35                 protected SafeArrayRankMismatchException (SerializationInfo info, StreamingContext context)
36                         : base (info, context)
37                 {
38                 }
39         }
40 }