Basic snax errors library
|AlreadyExistsError||1||Means that something already exists|
|BadRequestError||2||Means that request payload is not valid|
|NotFoundError||3||Means that something not found|
|GeneralError||4||Means that this error is representing common error and cannot be associated with other error types|
|TwitterError||5||Means that this error was returned from Twitter API|
|SteemitError||6||Means that this error was returned from Steemit Chain|
|RestrictionError||7||Means that not authenticated or not allowed|
|InternalServerError||8||Means that something in general wrong with the server side|
|ResourcesUsageError||9||Means that user don't have enough resources to send transactions to the chain|
- First release
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: snaxdart_errors: ^1.0.0
2. Install it
You can install packages from the command line:
$ pub get
$ 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:
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]
We analyzed this package on Nov 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.0
- pana: 0.12.21
Detected platforms: Flutter, web, other
No platform restriction found in primary library
Health issues and suggestions
Document public APIs. (-1 points)
34 out of 34 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
lib/snaxdart_errors.dart. (-4.89 points)
lib/snaxdart_errors.dart reported 10 hints, including:
line 35 col 16: Unnecessary new keyword.
line 37 col 16: Unnecessary new keyword.
line 39 col 16: Unnecessary new keyword.
line 41 col 16: Unnecessary new keyword.
line 43 col 16: Unnecessary new keyword.
lib/snaxdart_errors.g.dart. (-1 points)
lib/snaxdart_errors.g.dart reported 2 hints:
line 9 col 11: The declaration '_$SnaxErrorFromJson' isn't referenced.
line 17 col 22: The declaration '_$SnaxErrorToJson' isn't referenced.
Maintenance issues and suggestions
Support latest dependencies. (-10 points)
The version constraint in
pubspec.yaml does not support the latest published versions for 1 dependency (
The package description is too short. (-20 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
snaxdart_errors.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.