lib/rom/sql/errors.rb in rom-sql-1.0.0 vs lib/rom/sql/errors.rb in rom-sql-1.0.1
- old
+ new
@@ -9,9 +9,10 @@
NotNullConstraintError = Class.new(ConstraintError)
UniqueConstraintError = Class.new(ConstraintError)
ForeignKeyConstraintError = Class.new(ConstraintError)
CheckConstraintError = Class.new(ConstraintError)
UnknownDBTypeError = Class.new(StandardError)
+ MissingPrimaryKeyError = Class.new(StandardError)
ERROR_MAP = {
Sequel::DatabaseError => DatabaseError,
Sequel::ConstraintViolation => ConstraintError,
Sequel::NotNullConstraintViolation => NotNullConstraintError,