26 lines
825 B
Dart
26 lines
825 B
Dart
import '../../errors/app_exception.dart';
|
|
|
|
class ConnectException extends AppException {
|
|
const ConnectException({
|
|
super.userMessage =
|
|
'Verbindung zum Marianum-Connect-Server fehlgeschlagen.',
|
|
super.technicalDetails,
|
|
super.allowRetry,
|
|
});
|
|
|
|
factory ConnectException.authFailed({String? technicalDetails}) =>
|
|
ConnectException(
|
|
userMessage:
|
|
'Anmeldung am Connect-Server fehlgeschlagen. Bitte prüfe deine Anmeldedaten.',
|
|
technicalDetails: technicalDetails,
|
|
allowRetry: false,
|
|
);
|
|
|
|
factory ConnectException.notAuthenticated() => const ConnectException(
|
|
userMessage:
|
|
'Für diese Funktion ist eine Anmeldung am Connect-Server nötig.',
|
|
technicalDetails: 'AccountData missing while trying to log in to connect',
|
|
allowRetry: false,
|
|
);
|
|
}
|