Exception: Diametric::Errors::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/diametric/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(entity) ⇒ ValidationError

Returns a new instance of ValidationError


7
8
9
# File 'lib/diametric/errors.rb', line 7

def initialize(entity)
  super(entity.errors.full_messages.join(", "))
end