diff options
| author | Murilo Ijanc <[email protected]> | 2026-07-27 20:22:17 -0300 |
|---|---|---|
| committer | Murilo Ijanc <[email protected]> | 2026-07-27 20:23:14 -0300 |
| commit | 516254878b0b8f92a8ef4543bf5d0601aac3466d (patch) | |
| tree | bbe750f8863fe2ee16bbee405caf0c2e58694dfe /Makefile | |
| parent | 0757164507a1f9be8b9f61292a9069759f1da034 (diff) | |
| download | kotlin-32de90ceadb716a18b3bbf248fcf6f2aac687e87.tar.gz | |
A CEP that fails is almost never a random number: it is someone who knows
the city and guessed the digits, most often the -000 that 957 municipalities
never received. The API now names the municipality that number would belong
to, so the client surfaces it as CepNotFoundException.faixa instead of
throwing away the one piece of information that makes the failure useful.
It stays an exception. The block is context for a 404, not an address, and
cep_ini/cep_fim are the smallest and largest CEP that actually exist there
rather than the range the Correios publish -- the published start for Areal
is the very CEP that just failed. The range is sparse (118 CEPs across some
9,000 numbers), which is what ceps is for.
Parsing is deliberately total: absent, null, empty or malformed all yield
null. Losing a clean not-found to a parse error over an optional field would
be a bad trade.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions