초기 커밋

This commit is contained in:
2026-03-01 07:55:59 +09:00
commit b0262d6bab
67 changed files with 4660 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
class ServerException implements Exception {
const ServerException({
required this.message,
required this.statusCode,
});
final String message;
final int statusCode;
@override
String toString() => 'ServerException(message: $message, statusCode: $statusCode)';
}
class CacheException implements Exception {
const CacheException({required this.message});
final String message;
@override
String toString() => 'CacheException(message: $message)';
}
class NetworkException implements Exception {
const NetworkException({this.message = 'No internet connection'});
final String message;
@override
String toString() => 'NetworkException(message: $message)';
}
class UnauthorizedException implements Exception {
const UnauthorizedException({this.message = 'Unauthorized'});
final String message;
@override
String toString() => 'UnauthorizedException(message: $message)';
}