-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http_client_hoc081098
, cancellation_token_hoc081098
, Future
to …
…`Single` (#73) * draft http_client_hoc081098 * further refactor * further refactor * further refactor * further refactor * further refactor * rxdart_ext: ^0.2.6 * deps * fix * fix
- Loading branch information
Showing
27 changed files
with
539 additions
and
474 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import 'dart:io'; | ||
class RemoteDataSourceException implements Exception { | ||
final String message; | ||
final Object error; | ||
final StackTrace stackTrace; | ||
|
||
class RemoteDataSourceException extends HttpException { | ||
final int statusCode; | ||
|
||
RemoteDataSourceException(this.statusCode, String message) : super(message); | ||
const RemoteDataSourceException(this.message, this.error, this.stackTrace); | ||
|
||
@override | ||
String toString() => | ||
'RemoteDataSourceException{statusCode=$statusCode, message=$message}'; | ||
'RemoteDataSourceException{message=$message, error=$error, stackTrace=$stackTrace}'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.