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

Method constructor

services/cep/cep.js:40–47  ·  view source on GitHub ↗
({ message, type, errors } = {})

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected