throwApplicationError function
Implementation
void throwApplicationError(Object e) {
final String? message = e is SimpleError
? e.message
: 'Erro ao se conectar com o serviço ViaCEP.';
throw ServiceError(
service: Service.ViaCEP,
message: message,
);
}