Dart generic app exceptions, mainly aimed at flutter

Overview

Micro dart library that expose generic exceptions.

The goal of this library is to for the end user to rethrow exceptions of other libraries with the same common AppException. This way it's possible to make all exceptions that are supposed to be catched inherit from the same base class. This is useful for expample if you want to display a toast message on all Unauthorized exceptions.

Usage

import 'package:app_exceptions/app_exceptions.dart' as ex;

void main() {
  ex.AppException('Generic', 'this is a generic exception');
  ex.UnauthorizedException(
      description: 'You were not authorized to access this resource');
  ex.InvalidInputException('email', description: 'invalid email');
  ex.ActionCancelledException(
      description: 'The action was canceled by the user');
  ex.NotFoundException(description: 'the resource was not found');
  ex.PermissionNotGrantedException(
      description: 'Permission for geolocation not granted');
  ex.ServiceUnavailableException(
      description: 'The audio service is unavailable');
}
You might also like...

Mysql.dart - MySQL client for Dart written in Dart

Native MySQL client written in Dart for Dart See example directory for examples

Dec 29, 2022

Flutter Dart-Projesi - Meditation app developed using Flutter and Dart

Flutter Dart-Projesi - Meditation app developed using Flutter and Dart

Müzik Çalar Meditasyon Uygulaması Medi Flutter ve Dart ile programlanmış bir med

Jan 29, 2022

🎬 A movie catalog app for both Android & IOS ~ Flutter.io project in Dart | Dart, Bloc, Movies

Movie Catalog App 🎬 Browse through movies from the YIFY api Getting Started For help getting started with Flutter, view our online documentation. Tod

Nov 21, 2022

Flutter Navigation - all types of navigation in flutter run main.tabBar.dart to see tabBar, and run main.dart to see the otheres

pop_up_bar A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if th

Jan 1, 2022

A Dart client for the NATS messaging system. Design to use with Dart and Flutter.

Dart-NATS A Dart client for the NATS messaging system. Design to use with Dart and flutter. Flutter Web Support by WebSocket client.connect(Uri.parse(

Nov 18, 2022

GitHub Action that uses the Dart Package Analyzer to compute the Pub score of Dart/Flutter packages

GitHub Action that uses the Dart Package Analyzer to compute the Pub score of Dart/Flutter packages

Dart/Flutter package analyzer This action uses the pana (Package ANAlysis) package to compute the score that your Dart or Flutter package will have on

Dec 29, 2022

Flying Fish is full-stack Dart framework - a semi-opinionated framework for building applications exclusively using Dart and Flutter

Flying Fish is full-stack Dart framework - a semi-opinionated framework for building applications exclusively using Dart and Flutter.

Dec 27, 2022

This is a dart package that converts words to numbers. It can be used in Flutter and normal Dart programs

Wordstonumbers.dart Wordstonumbers.dart is a simple dart package that converts a string of simple worded numbers into digits (e.g one hundred - 100).

Oct 17, 2022

I start to learn dart-flutter. And also this project was basics of Dart

learning_dart A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if

Dec 14, 2022
Owner
cedvdb
cedvdb
Flutter error catching & handling plugin. Handles and reports exceptions in your app!

Catcher Catcher is Flutter plugin which automatically catches error/exceptions and handle them. Catcher offers multiple way to handle errors. Catcher

Jakub 697 Jan 7, 2023
🇮🇪 A generic programming language interpreter, linter, formatter, and all that jazz, written in Dart.

Irishman ???? A generic programming language interpreter, linter, formatter, and all that jazz, written in Dart. Installation To install this package

Fairfield Programming Association 2 Oct 8, 2022
Planto - Planto app mainly targets the farmers whether large scale or small scale

planto Inspiration Planto has been developed for the farming sector. In India, f

Amit Singh 1 Nov 2, 2022
This is a university marketplace, where students buy and sell products and services online or offline. Mainly to connect the two parties together.

marktorder A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if th

Ibukunoluwa Naphtali 1 Jan 10, 2022
Horizontal list - A horizontal list widget to use in mainly for web or desktop application

horizontal_list A horizontal list widget with buttons next and previous. You can

Daniel 2 Feb 2, 2022
A Dart dependency injection library aimed to be flexible, predictable and easy to use.

dino Dino is a Dart dependency injection library with optional code generation. It was inspired by DI in .NET and aimed to be flexible, predictable an

null 3 Dec 20, 2022
Weather app using Bloc architecture pattern & generic HTTP client with interface implementation and much more for more detail read Readme

weather Weather application for current weather, hourly forecast for 48 hours, Daily forecast for 7 days and national weather alerts. How to Run Insta

Jibran Ahmed SiddiQui 9 Oct 29, 2022
This project is aimed to read online attendance by using QR code

Online Yoklama (Online Attandance) This project is aimed to read online attendance by using QR code. Materials ESP32 AI Thinker CAM PL2303 UART Buzzer

Emre ARIK 2 Jan 14, 2022
Time Table application specifically aimed towards students. Share Time-Tables. Suggest Updates.

Time-Table-App Time Table application specifically aimed towards students. Tech stack Project is created by: Flutter: 2.8.1 Dart: 2.15.1 Planned Featu

PEC ACM CSS 8 Oct 7, 2022