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|
Add this to your package's pubspec.yaml file:
dependencies: snaxdart_errors: ^1.0.0
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.
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 Jul 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in primary library
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.g.dart. (-1 points)
lib/snaxdart_errors.g.dart reported 2 hints:
line 9 col 11: The function '_$SnaxErrorFromJson' isn't used.
line 17 col 22: The function '_$SnaxErrorToJson' isn't used.
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.