Class: Kybus::Storage::Exceptions::ValidationErrors

Inherits:
Exceptions::KybusFail
  • Object
show all
Defined in:
lib/kybus/storage/datasource/exceptions.rb

Overview

Exception used when a value on a model violates the restrictions from the validators.

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ValidationErrors

Returns a new instance of ValidationErrors.



21
22
23
# File 'lib/kybus/storage/datasource/exceptions.rb', line 21

def initialize(data)
  super('Error while validating object', 'ValidationErrors', data)
end