We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Methods that return a future and raise exceptions should raise the exception so as the callers future handler can catch it.
Sporran should be updated as follows -
Future put(....){ if (id == null) { return new Future.error(new SporranException('put() expects a doc id.')); }
this allows -
localSporran.put(....).then((jsonobject.JsonObject res) { //do something }, onError:(SporranException e){ //do something });
Note, this update has been applied to the Wilt package, Sporran also needs general method parameter checking added to its methods.
The text was updated successfully, but these errors were encountered:
Changes incorporated, can be closed
Sorry, something went wrong.
No branches or pull requests
Methods that return a future and raise exceptions should raise the exception so as the callers future handler can catch it.
Sporran should be updated as follows -
Future put(....){
if (id == null) {
return new Future.error(new SporranException('put() expects a doc id.'));
}
this allows -
localSporran.put(....).then((jsonobject.JsonObject res) {
//do something
}, onError:(SporranException e){
//do something
});
Note, this update has been applied to the Wilt package, Sporran also needs general method parameter checking added to its methods.
The text was updated successfully, but these errors were encountered: