({ message, type, errors } = {})
| 38 | |
| 39 | class 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 | |
| 50 | export async function fetchCep(cep) { |
nothing calls this directly
no outgoing calls
no test coverage detected