This commit is contained in:
2025-03-19 19:40:26 +01:00
commit 30b2545f4c
65 changed files with 13788 additions and 0 deletions

23
lib/src/isar_error.dart Normal file
View File

@@ -0,0 +1,23 @@
part of isar;
/// An error raised by Isar.
class IsarError extends Error {
/// @nodoc
@protected
IsarError(this.message);
/// The message
final String message;
@override
String toString() {
return 'IsarError: $message';
}
}
/// This error is returned when a unique index constraint is violated.
class IsarUniqueViolationError extends IsarError {
/// @nodoc
@protected
IsarUniqueViolationError() : super('Unique index violated');
}