2002-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / corlib / System.Security.Cryptography / CryptographicException.cs
1 //\r
2 // System.Security.Cryptography.CryptographicException.cs\r
3 //\r
4 // Author:\r
5 //   Thomas Neidhart (tome@sbox.tugraz.at)\r
6 //\r
7 \r
8 using System;\r
9 \r
10 namespace System.Security.Cryptography {\r
11 \r
12         [Serializable]\r
13         public class CryptographicException : SystemException {\r
14                 // Constructors\r
15                 public CryptographicException ()\r
16                         : base ("Error occured during a cryptographic operation.")\r
17                 {\r
18                 }\r
19 \r
20                 public CryptographicException (int hr)\r
21                 {\r
22                         HResult = hr;\r
23                 }\r
24 \r
25                 public CryptographicException (string message)\r
26                         : base (message)\r
27                 {\r
28                 }\r
29 \r
30                 public CryptographicException (string message, Exception inner)\r
31                         : base (message, inner)\r
32                 {\r
33                 }\r
34 \r
35                 public CryptographicException (string format, string insert)\r
36                         : base (String.Format(format, insert))\r
37                 {\r
38                 }\r
39         }\r
40 }\r