diff options
| author | Murilo Ijanc <[email protected]> | 2026-07-27 20:27:46 -0300 |
|---|---|---|
| committer | Murilo Ijanc <[email protected]> | 2026-07-27 20:27:46 -0300 |
| commit | 2795e86ccf5a15a7601611aaa12be1e0758c963a (patch) | |
| tree | 6a348960633e3e62eaeb102e74e8d1ceab68d65a /.gitignore | |
| parent | 329f679cd359bcab92adf3366cf17711836d0c79 (diff) | |
| download | java-main.tar.gz | |
A CEP that fails is almost never random: it is someone who knows the city
and guessed the number, usually the -000 that 957 municipalities never
received. The API now answers those 404s with a faixa block naming the
municipality that owns the band, so CepNotFoundException exposes it and
says it in its message.
It stays an error. The band is context, not an address, and its cep_ini
and cep_fim are the smallest and largest CEP that actually exist there —
not the bounds the Correios publish, and not a dense interval — so the
type documents both traps rather than inviting callers to walk the range.
Reading it is best effort: a missing, malformed or oddly shaped faixa is
dropped, because turning a definitive answer about the request into a
parse failure would hide the answer.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions