Skip to content

Commit

Permalink
Version 0.2.6
Browse files Browse the repository at this point in the history
Merge pull request #9 from Djcharles26/work
  • Loading branch information
Djcharles26 committed Jul 29, 2022
2 parents 0a38230 + 50e541b commit 97832fc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@
- Refactor nullOnException for skipException

## 0.2.5
- Added route field to http exception model
- Added route field to http exception model

## 0.2.6
- Added submessage field to http exception model
2 changes: 1 addition & 1 deletion CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Added route field to http exception model
- Added submessage field to http exception model
7 changes: 4 additions & 3 deletions lib/models/http_exception.dart
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
class HttpException implements Exception {
String message;
String? submessage;
String? route;
Code code;
Reason? reason;
int status;

HttpException(this.message, {this.route, this.code= Code.request, this.reason, this.status = -1});
HttpException(this.message, {this.submessage, this.route, this.code= Code.request, this.reason, this.status = -1});



@override
String toString() {
String retval = "";
if (route != null) {
retval = "Route: $route";
retval = "Route: $route\n";
}
retval += message +
retval += message + (submessage ?? "") +
"\n${reasonToString(reason??Reason.confirm)}";
return retval;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: http_request_utils
description: Http requests utils
version: 0.2.5
version: 0.2.6
homepage: https://github.com/Djcharles26/
repository: https://github.com/Djcharles26/http_utils.git

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.5
0.2.6

0 comments on commit 97832fc

Please sign in to comment.