summaryrefslogtreecommitdiffstats
path: root/src/InvalidCepException.php
blob: 21a45933127bd7e3aa0989122a3e65cfb05a91ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

declare(strict_types=1);

namespace Cepis;

/**
 * The CEP is not 8 digits.
 *
 * Usually thrown **without** a request ever being made — the client checks the
 * format before going to the network. 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.
 *
 * Extends `\InvalidArgumentException`: this is an argument error.
 */
final class InvalidCepException extends \InvalidArgumentException implements CepisException
{
}