using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; namespace System.Security.Cryptography { /// The exception that is thrown when an error occurs during a cryptographic operation. // Token: 0x020004F1 RID: 1265 [ComVisible(true)] [Serializable] public class CryptographicException : SystemException, _Exception { /// Initializes a new instance of the class with default properties. // Token: 0x06002ECD RID: 11981 RVA: 0x00096A10 File Offset: 0x00094C10 public CryptographicException() : base(Locale.GetText("Error occured during a cryptographic operation.")) { base.HResult = -2146233296; } /// Initializes a new instance of the class with the specified HRESULT error code. /// The HRESULT error code. // Token: 0x06002ECE RID: 11982 RVA: 0x00096A30 File Offset: 0x00094C30 public CryptographicException(int hr) { base.HResult = hr; } /// Initializes a new instance of the class with a specified error message. /// The error message that explains the reason for the exception. // Token: 0x06002ECF RID: 11983 RVA: 0x00096A40 File Offset: 0x00094C40 public CryptographicException(string message) : base(message) { base.HResult = -2146233296; } /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. /// The error message that explains the reason for the exception. /// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception. // Token: 0x06002ED0 RID: 11984 RVA: 0x00096A54 File Offset: 0x00094C54 public CryptographicException(string message, Exception inner) : base(message, inner) { base.HResult = -2146233296; } /// Initializes a new instance of the class with a specified error message in the specified format. /// The format used to output the error message. /// The error message that explains the reason for the exception. // Token: 0x06002ED1 RID: 11985 RVA: 0x00096A6C File Offset: 0x00094C6C public CryptographicException(string format, string insert) : base(string.Format(format, insert)) { base.HResult = -2146233296; } /// Initializes a new instance of the class with serialized data. /// The object that holds the serialized object data. /// The contextual information about the source or destination. // Token: 0x06002ED2 RID: 11986 RVA: 0x00096A88 File Offset: 0x00094C88 protected CryptographicException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }