namespace Cepis;
///
/// The CEP is not eight digits.
///
///
/// Usually thrown without a request ever being made: the client checks
/// the format before going to the network, because a seven-digit CEP is the
/// caller's bug and spending a round trip for the server to say so wastes both
/// sides' time. It is also thrown when the API answers 400 to a CEP that passed
/// local validation, in which case it carries the API's own message.
///
public sealed class InvalidCepException : CepisException
{
/// Create the exception with a message.
/// what went wrong
public InvalidCepException(string message)
: base(message)
{
}
/// Create the exception with a message and an underlying cause.
/// what went wrong
/// the failure underneath
public InvalidCepException(string message, Exception? innerException)
: base(message, innerException)
{
}
}