2 // System.Security.Cryptography.CryptographicUnexpectedOperationException.cs
5 // Thomas Neidhart (tome@sbox.tugraz.at)
9 using System.Runtime.Serialization;
11 namespace System.Security.Cryptography {
14 public class CryptographicUnexpectedOperationException : CryptographicException {
16 public CryptographicUnexpectedOperationException ()
17 : base ("Error occured during a cryptographic operation.")
19 // Default to CORSEC_E_CRYPTO_UNEX_OPER (CorError.h)
20 HResult = unchecked ((int)0x80131431);
23 public CryptographicUnexpectedOperationException (string message)
26 HResult = unchecked ((int)0x80131431);
29 public CryptographicUnexpectedOperationException (string message, Exception inner)
30 : base (message, inner)
32 HResult = unchecked ((int)0x80131431);
35 public CryptographicUnexpectedOperationException (string format, string insert)
36 : base (String.Format(format, insert))
38 HResult = unchecked ((int)0x80131431);
41 protected CryptographicUnexpectedOperationException (SerializationInfo info, StreamingContext context)
42 : base (info, context)