Daily commit
This commit is contained in:
20
lib/exceptions/login.dart
Normal file
20
lib/exceptions/login.dart
Normal file
@ -0,0 +1,20 @@
|
||||
class LoginInvalidUrlException implements Exception {
|
||||
@override
|
||||
String toString() {
|
||||
return "Invalid url";
|
||||
}
|
||||
}
|
||||
|
||||
class LoginNoSessionIdException implements Exception {
|
||||
@override
|
||||
String toString() {
|
||||
return "No session id found in url";
|
||||
}
|
||||
}
|
||||
|
||||
class LoginUnauthorizedException implements Exception {
|
||||
@override
|
||||
String toString() {
|
||||
return "Unauthorized";
|
||||
}
|
||||
}
|
||||
8
lib/exceptions/server.dart
Normal file
8
lib/exceptions/server.dart
Normal file
@ -0,0 +1,8 @@
|
||||
class ServerErrorException implements Exception {
|
||||
final String message;
|
||||
|
||||
ServerErrorException({required this.message});
|
||||
|
||||
@override
|
||||
String toString() => message;
|
||||
}
|
||||
Reference in New Issue
Block a user