2 // System.Security.Cryptography.CryptographicException.cs
5 // Thomas Neidhart (tome@sbox.tugraz.at)
9 using System.Runtime.Serialization;
11 namespace System.Security.Cryptography {
14 public class CryptographicException : SystemException {
17 public CryptographicException ()
18 : base ("Error occured during a cryptographic operation.")
20 // default to CORSEC_E_CRYPTO
21 // defined as EMAKEHR(0x1430) in CorError.h
22 HResult = unchecked ((int)0x80131430);
25 public CryptographicException (int hr)
30 public CryptographicException (string message)
33 HResult = unchecked ((int)0x80131430);
36 public CryptographicException (string message, Exception inner)
37 : base (message, inner)
39 HResult = unchecked ((int)0x80131430);
42 public CryptographicException (string format, string insert)
43 : base (String.Format(format, insert))
45 HResult = unchecked ((int)0x80131430);
48 protected CryptographicException (SerializationInfo info, StreamingContext context)
49 : base (info, context)