diff options
| author | Murilo Ijanc <[email protected]> | 2026-07-26 14:58:55 -0300 |
|---|---|---|
| committer | Murilo Ijanc <[email protected]> | 2026-07-26 14:58:55 -0300 |
| commit | 64764fb9fac0227f8e0443e7c7519d73aec275b9 (patch) | |
| tree | cb4fc56eeb6ecce53854f9c530609cf01ab3349f /src/InvalidCepException.php | |
| download | php-1fd1470890518a68130b3b9058fe1bebddca9f07.tar.gz | |
Initial importv0.1.0
Diffstat (limited to 'src/InvalidCepException.php')
| -rw-r--r-- | src/InvalidCepException.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/InvalidCepException.php b/src/InvalidCepException.php new file mode 100644 index 0000000..21a4593 --- /dev/null +++ b/src/InvalidCepException.php @@ -0,0 +1,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 +{ +} |