angel_http_exception 1.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 85

http_exception #

Angel's HTTP exception class.

1.1.0 #

  • Emit is_error and status_code in toJson().
    • No more camelCase at all.

1.0.0+3 #

  • Slightly relax the deserialization of errors.

1.0.0+2 #

  • Added a backwards-compatible way to cast the errors List.

1.0.0+1 #

  • Dart 2 updates.


import 'package:angel_http_exception/angel_http_exception.dart';

void main() =>
    throw new AngelHttpException.notFound(message: "Can't find that page!");

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  angel_http_exception: ^1.1.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:angel_http_exception/angel_http_exception.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Fix lib/angel_http_exception.dart. (-6.78 points)

Analysis of lib/angel_http_exception.dart reported 14 hints, including:

line 52 col 12: Unnecessary new keyword.

line 63 col 7: Unnecessary new keyword.

line 70 col 7: Unnecessary new keyword.

line 76 col 7: Unnecessary new keyword.

line 81 col 7: Unnecessary new keyword.

Maintenance suggestions

Package is getting outdated. (-11.51 points)

The package was last published 58 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <3.0.0
dart2_constant ^1.0.0 1.0.2+dart2
Dev dependencies
pedantic ^1.0.0