|
1 | 1 | using System; |
2 | 2 |
|
3 | | -namespace AdvancedSystems.Security.Abstractions.Exceptions |
| 3 | +namespace AdvancedSystems.Security.Abstractions.Exceptions; |
| 4 | + |
| 5 | +/// <summary> |
| 6 | +/// Represents errors that occur because a specified certificate could not be located. |
| 7 | +/// </summary> |
| 8 | +/// <remarks> |
| 9 | +/// This exception is typically thrown when an attempt to retrieve a certificate by its |
| 10 | +/// identifier, such as a thumbprint or subject name, fails. It indicates that the required |
| 11 | +/// certificate is not present in the specified certificate store or location. |
| 12 | +/// </remarks> |
| 13 | +public class CertificateNotFoundException : Exception |
4 | 14 | { |
5 | 15 | /// <summary> |
6 | | - /// Represents errors that occur because a specified certificate could not be located. |
| 16 | + /// Initializes a new instance of the <seealso cref="CertificateNotFoundException"/> class. |
7 | 17 | /// </summary> |
8 | | - /// <remarks> |
9 | | - /// This exception is typically thrown when an attempt to retrieve a certificate by its |
10 | | - /// identifier, such as a thumbprint or subject name, fails. It indicates that the required |
11 | | - /// certificate is not present in the specified certificate store or location. |
12 | | - /// </remarks> |
13 | | - public class CertificateNotFoundException : Exception |
| 18 | + public CertificateNotFoundException() |
14 | 19 | { |
15 | | - /// <summary> |
16 | | - /// Initializes a new instance of the <seealso cref="CertificateNotFoundException"/> class. |
17 | | - /// </summary> |
18 | | - public CertificateNotFoundException() |
19 | | - { |
20 | 20 |
|
21 | | - } |
| 21 | + } |
22 | 22 |
|
23 | | - /// <summary> |
24 | | - /// Initializes a new instance of the <seealso cref="CertificateNotFoundException"/> class with a specified error <paramref name="message"/>. |
25 | | - /// </summary> |
26 | | - /// <param name="message">The error message that explains the reason for the exception.</param> |
27 | | - public CertificateNotFoundException(string message) : base(message) |
28 | | - { |
| 23 | + /// <summary> |
| 24 | + /// Initializes a new instance of the <seealso cref="CertificateNotFoundException"/> class with a specified error <paramref name="message"/>. |
| 25 | + /// </summary> |
| 26 | + /// <param name="message">The error message that explains the reason for the exception.</param> |
| 27 | + public CertificateNotFoundException(string message) : base(message) |
| 28 | + { |
29 | 29 |
|
30 | | - } |
| 30 | + } |
31 | 31 |
|
32 | | - /// <summary> |
33 | | - /// Initializes a new instance of the <seealso cref="CertificateNotFoundException"/> class with a specified error |
34 | | - /// <paramref name="message"/> a reference to the <paramref name="inner"/> exception that is the cause of this exception. |
35 | | - /// </summary> |
36 | | - /// <param name="message">The error message that explains the reason for the exception.</param> |
37 | | - /// <param name="inner">The exception that is the cause of the current exception, or a null reference if no inner exception is specified.</param> |
38 | | - public CertificateNotFoundException(string message, Exception inner) : base(message, inner) |
39 | | - { |
| 32 | + /// <summary> |
| 33 | + /// Initializes a new instance of the <seealso cref="CertificateNotFoundException"/> class with a specified error |
| 34 | + /// <paramref name="message"/> a reference to the <paramref name="inner"/> exception that is the cause of this exception. |
| 35 | + /// </summary> |
| 36 | + /// <param name="message">The error message that explains the reason for the exception.</param> |
| 37 | + /// <param name="inner">The exception that is the cause of the current exception, or a null reference if no inner exception is specified.</param> |
| 38 | + public CertificateNotFoundException(string message, Exception inner) : base(message, inner) |
| 39 | + { |
40 | 40 |
|
41 | | - } |
42 | 41 | } |
43 | 42 | } |
0 commit comments