Exception: Hanami::Model::ConstraintViolationError

Inherits:
Error
  • Object
show all
Defined in:
lib/hanami/model/error.rb

Overview

Error for Constraint Violation

Since:

  • 0.7.0

Instance Method Summary collapse

Methods inherited from Error

for, mapping, register

Constructor Details

#initialize(message = 'Constraint has been violated') ⇒ ConstraintViolationError

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 ConstraintViolationError.

Since:

  • 0.7.0


55
56
57
# File 'lib/hanami/model/error.rb', line 55

def initialize(message = 'Constraint has been violated')
  super
end