2004-04-05 Bernie Solomon <bernard@ugsolutions.com>
[mono.git] / mcs / class / corlib / System.Security.Cryptography / CryptographicUnexpectedOperationExcpetion.cs
1 //
2 // System.Security.Cryptography.CryptographicUnexpectedOperationException.cs
3 //
4 // Author:
5 //   Thomas Neidhart (tome@sbox.tugraz.at)
6 //
7
8 using System;
9 using System.Runtime.Serialization;
10
11 namespace System.Security.Cryptography {
12
13 [Serializable]
14 public class CryptographicUnexpectedOperationException : CryptographicException {
15         // Constructors
16         public CryptographicUnexpectedOperationException ()
17                 : base ("Error occured during a cryptographic operation.")
18         {
19                 // Default to CORSEC_E_CRYPTO_UNEX_OPER (CorError.h)
20                 HResult = unchecked ((int)0x80131431);
21         }
22
23         public CryptographicUnexpectedOperationException (string message)
24                 : base (message)
25         {
26                 HResult = unchecked ((int)0x80131431);
27         }
28
29         public CryptographicUnexpectedOperationException (string message, Exception inner)
30                 : base (message, inner)
31         {
32                 HResult = unchecked ((int)0x80131431);
33         }
34
35         public CryptographicUnexpectedOperationException (string format, string insert)
36                 : base (String.Format(format, insert))
37         {
38                 HResult = unchecked ((int)0x80131431);
39         }
40
41         protected CryptographicUnexpectedOperationException (SerializationInfo info, StreamingContext context)
42                 : base (info, context) 
43         {
44         }
45 }
46
47 }