Files
2026-06-04 11:42:34 +02:00

68 lines
3.4 KiB
C#

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