Exception: Hanami::Model::CheckConstraintViolationError

Inherits:
ConstraintViolationError show all
Defined in:
lib/hanami/model/error.rb

Overview

Error for Check Constraint Violation raised by Sequel

Since:

  • 0.6.1

Instance Method Summary collapse

Methods inherited from Error

for, mapping, register

Constructor Details

#initialize(message = "Check constraint has been violated") ⇒ CheckConstraintViolationError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CheckConstraintViolationError.

Since:

  • 0.6.1



101
102
103
# File 'lib/hanami/model/error.rb', line 101

def initialize(message = "Check constraint has been violated")
  super
end