cyberhybridhub/lib/data/remote/profile_api_exception.dart
2026-05-20 10:22:58 -05:00

20 lines
466 B
Dart

import '../../models/user_profile.dart';
class ProfileNotFoundException implements Exception {}
class ProfileConflictException implements Exception {
ProfileConflictException(this.serverProfile);
final UserProfile serverProfile;
}
class ProfileApiException implements Exception {
ProfileApiException(this.statusCode, this.body);
final int statusCode;
final String body;
@override
String toString() => 'ProfileApiException($statusCode): $body';
}