app_exceptions library

Micro dart library that expose generic exceptions.

The goal of this library is 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 those exceptions

Exceptions / Errors

ActionCancelledException
thrown when an action was cancelled before finishing
AppException
generic app exception
InvalidInputException
thrown when an input is invalid
NetworkFailureException
thrown when the operation could not be transmitted over the network
NotFoundException
thrown when a resource was not found
PermissionNotGrantedException
thrown when a trying to use a service for which access is denied for the application
ServiceUnavailableException
thrown when a service has been disabled
UnauthorizedException
thrown when an user is unauthorized to do an action