-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added error handling and error state UI
- Loading branch information
1 parent
13caf71
commit fe26838
Showing
7 changed files
with
464 additions
and
268 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class ApiException implements Exception { | ||
final String message; | ||
final String error; | ||
ApiException({ | ||
required this.message, | ||
required this.error, | ||
}); | ||
|
||
@override | ||
String toString() { | ||
return message; | ||
} | ||
|
||
String get getBaseError { | ||
return error; | ||
} | ||
} |
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.