20 lines
466 B
Dart
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';
|
|
}
|