Basic Webuntis error handling
This commit is contained in:
@ -11,7 +11,7 @@ class GetTimetableCache extends RequestCache<GetTimetableResponse> {
|
||||
int startdate;
|
||||
int enddate;
|
||||
|
||||
GetTimetableCache({required onUpdate, required this.startdate, required this.enddate}) : super(RequestCache.cacheMinute, onUpdate) {
|
||||
GetTimetableCache({required onUpdate, onError, required this.startdate, required this.enddate}) : super(RequestCache.cacheMinute, onUpdate, onError: onError) {
|
||||
start("MarianumMobile", "wu-timetable-$startdate-$enddate");
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
class WebuntisError {
|
||||
class WebuntisError implements Exception {
|
||||
String message;
|
||||
int code;
|
||||
|
||||
|
Reference in New Issue
Block a user