Exception: Hanami::Model::UniqueConstraintViolationError

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

Overview

Error for Unique Constraint Violation

Since:

  • 0.6.1

Instance Method Summary collapse

Methods inherited from Error

for, mapping, register

Constructor Details

#initialize(message = 'Unique constraint has been violated') ⇒ UniqueConstraintViolationError

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

Since:

  • 0.6.1



66
67
68
# File 'lib/hanami/model/error.rb', line 66

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