diff options
| author | Murilo Ijanc <[email protected]> | 2026-07-26 12:42:38 -0300 |
|---|---|---|
| committer | Murilo Ijanc <[email protected]> | 2026-07-26 13:10:34 -0300 |
| commit | a2b10fd494fb389e556e40134031eb86e56e11e7 (patch) | |
| tree | 08b6df8a06f2c7c15488b90d57a6d8286cd57a22 /src/Cepis/CepNotFoundException.cs | |
| download | csharp-a2b10fd494fb389e556e40134031eb86e56e11e7.tar.gz | |
Initial importv0.1.0
Diffstat (limited to 'src/Cepis/CepNotFoundException.cs')
| -rw-r--r-- | src/Cepis/CepNotFoundException.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Cepis/CepNotFoundException.cs b/src/Cepis/CepNotFoundException.cs new file mode 100644 index 0000000..ced7b16 --- /dev/null +++ b/src/Cepis/CepNotFoundException.cs @@ -0,0 +1,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) + { + } +} |