throwApplicationError function

void throwApplicationError(
  1. Object e
)

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,
  );
}