MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / CepPromiseError

Class CepPromiseError

services/cep/cep.js:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39class CepPromiseError extends Error {
40 constructor({ message, type, errors } = {}) {
41 super();
42
43 this.name = 'CepPromiseError';
44 this.message = message;
45 this.type = type;
46 this.errors = errors;
47 }
48}
49
50export async function fetchCep(cep) {
51 const cleanCep = onlyDigits(cep);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected