lib/hanami/model/error.rb in hanami-model-1.0.4 vs lib/hanami/model/error.rb in hanami-model-1.1.0.beta1

- old
+ new

@@ -58,43 +58,43 @@ end # Error for Unique Constraint Violation # # @since 0.6.1 - class UniqueConstraintViolationError < Error + class UniqueConstraintViolationError < ConstraintViolationError # @since 0.6.1 # @api private def initialize(message = 'Unique constraint has been violated') super end end # Error for Foreign Key Constraint Violation # # @since 0.6.1 - class ForeignKeyConstraintViolationError < Error + class ForeignKeyConstraintViolationError < ConstraintViolationError # @since 0.6.1 # @api private def initialize(message = 'Foreign key constraint has been violated') super end end # Error for Not Null Constraint Violation # # @since 0.6.1 - class NotNullConstraintViolationError < Error + class NotNullConstraintViolationError < ConstraintViolationError # @since 0.6.1 # @api private def initialize(message = 'NOT NULL constraint has been violated') super end end # Error for Check Constraint Violation raised by Sequel # # @since 0.6.1 - class CheckConstraintViolationError < Error + class CheckConstraintViolationError < ConstraintViolationError # @since 0.6.1 # @api private def initialize(message = 'Check constraint has been violated') super end