new project stable version

This commit is contained in:
2026-05-10 19:11:31 +03:00
commit 3616f84556
391 changed files with 23857 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
class AuthBlockException implements Exception {
String description = "Неверный код. Вы временно заблокированы, попробуйте позже.";
AuthBlockException();
@override
String toString() => description;
}

View File

@@ -0,0 +1,9 @@
class AuthException implements Exception {
int attemptsLeft;
String? description;
AuthException(this.description, this.attemptsLeft);
@override
String toString() => description ?? "Ошибка авторизации";
}

View File

@@ -0,0 +1,8 @@
class RouteHistoryNotFoundException implements Exception {
final String message;
RouteHistoryNotFoundException({this.message = "История маршрута не найдена"});
@override
String toString() => message;
}

View File

@@ -0,0 +1,8 @@
class ScooterNotFoundException implements Exception {
final String message;
ScooterNotFoundException({this.message = "Самокат не найден"});
@override
String toString() => message;
}

View File

@@ -0,0 +1,5 @@
class UnauthorizedException implements Exception {
@override
String toString() => "Ошибка авторизации. Пользователь не авторизован";
}

View File

@@ -0,0 +1,6 @@
class WrongZoneException implements Exception {
final String message;
WrongZoneException({required this.message});
}