Skip to main content

app_exceptions 1.0.1 copy "app_exceptions: ^1.0.1" to clipboard
app_exceptions: ^1.0.1 copied to clipboard

A starting point for Dart libraries or applications.

example/app_exceptions_example.dart

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');
}
2
likes
160
points
37
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on app_exceptions