blob: ced7b16ff3626573c03e644d525be5772f9f94ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
namespace Cepis;
/// <summary>
/// The CEP is well-formed but does not exist in the DNE database.
/// </summary>
/// <remarks>
/// Retrying does not help: the answer is definitive until the next fortnightly
/// database. A batch never throws this — a CEP with no address is
/// <see langword="null"/> at its position instead.
/// </remarks>
public sealed class CepNotFoundException : CepisException
{
/// <summary>Create the exception with a message.</summary>
/// <param name="message">what went wrong</param>
public CepNotFoundException(string message)
: base(message)
{
}
/// <summary>Create the exception with a message and an underlying cause.</summary>
/// <param name="message">what went wrong</param>
/// <param name="innerException">the failure underneath</param>
public CepNotFoundException(string message, Exception? innerException)
: base(message, innerException)
{
}
}
|