diff --git a/apps/dotto/lib/repository/course_registration_repository.dart b/apps/dotto/lib/repository/course_registration_repository.dart index 95fc3716..0d0229fd 100644 --- a/apps/dotto/lib/repository/course_registration_repository.dart +++ b/apps/dotto/lib/repository/course_registration_repository.dart @@ -92,6 +92,12 @@ final class CourseRegistrationRepositoryImpl rethrow; } on Exception catch (e, stackTrace) { throw DomainError.fromException(e: e, stackTrace: stackTrace); + } catch (e, stackTrace) { + throw DomainError( + type: DomainErrorType.unknown, + message: e.toString(), + stackTrace: stackTrace, + ); } } @@ -113,6 +119,12 @@ final class CourseRegistrationRepositoryImpl rethrow; } on Exception catch (e, stackTrace) { throw DomainError.fromException(e: e, stackTrace: stackTrace); + } catch (e, stackTrace) { + throw DomainError( + type: DomainErrorType.unknown, + message: e.toString(), + stackTrace: stackTrace, + ); } } @@ -131,6 +143,12 @@ final class CourseRegistrationRepositoryImpl rethrow; } on Exception catch (e, stackTrace) { throw DomainError.fromException(e: e, stackTrace: stackTrace); + } catch (e, stackTrace) { + throw DomainError( + type: DomainErrorType.unknown, + message: e.toString(), + stackTrace: stackTrace, + ); } } }