Exception: Hanami::Model::ConstraintViolationError
- Defined in:
- lib/hanami/model/error.rb
Overview
Error for Constraint Violation
Direct Known Subclasses
CheckConstraintViolationError, ForeignKeyConstraintViolationError, NotNullConstraintViolationError, UniqueConstraintViolationError
Instance Method Summary collapse
-
#initialize(message = "Constraint has been violated") ⇒ ConstraintViolationError
constructor
private
A new instance of ConstraintViolationError.
Methods inherited from Error
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.
57 58 59 |
# File 'lib/hanami/model/error.rb', line 57 def initialize( = "Constraint has been violated") super end |