From 2795e86ccf5a15a7601611aaa12be1e0758c963a Mon Sep 17 00:00:00 2001 From: Murilo Ijanc Date: Mon, 27 Jul 2026 20:27:46 -0300 Subject: Carry the band's municipality on a not-found CEP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a2e9a18..2e93099 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ JAVAC ?= javac JAR ?= jar JAVADOC ?= javadoc -VERSION := 0.1.0 +VERSION := 0.2.0 MAIN_CLASS := is.cep.cepis.Main TEST_RUNNER := is.cep.cepis.TestRunner -- cgit v1.3