Exception: Hanami::Model::ForeignKeyConstraintViolationError

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

Overview

Error for Foreign Key Constraint Violation

Since:

  • 0.6.1

Instance Method Summary collapse

Methods inherited from Error

for, mapping, register

Constructor Details

#initialize(message = "Foreign key constraint has been violated") ⇒ ForeignKeyConstraintViolationError

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

Since:

  • 0.6.1



79
80
81
# File 'lib/hanami/model/error.rb', line 79

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