2 // System.Security.Cryptography.CryptographicUnexpectedOperationException.cs
5 // Thomas Neidhart (tome@sbox.tugraz.at)
7 // (C) 2004 Novell (http://www.novell.com)
11 using System.Globalization;
12 using System.Runtime.Serialization;
14 namespace System.Security.Cryptography {
17 public class CryptographicUnexpectedOperationException : CryptographicException {
19 public CryptographicUnexpectedOperationException ()
20 : base (Locale.GetText ("Unexpected error occured during a cryptographic operation."))
22 // Default to CORSEC_E_CRYPTO_UNEX_OPER (CorError.h)
23 HResult = unchecked ((int)0x80131431);
26 public CryptographicUnexpectedOperationException (string message)
29 HResult = unchecked ((int)0x80131431);
32 public CryptographicUnexpectedOperationException (string message, Exception inner)
33 : base (message, inner)
35 HResult = unchecked ((int)0x80131431);
38 public CryptographicUnexpectedOperationException (string format, string insert)
39 : base (String.Format(format, insert))
41 HResult = unchecked ((int)0x80131431);
44 protected CryptographicUnexpectedOperationException (SerializationInfo info, StreamingContext context)
45 : base (info, context)