Exception: ValueObject::ViolatedInvariant

Inherits:
Exception
  • Object
show all
Defined in:
lib/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, wrong_values) ⇒ ViolatedInvariant

Returns a new instance of ViolatedInvariant.



9
10
11
# File 'lib/exceptions.rb', line 9

def initialize(name, wrong_values)
  super "Fields values " + wrong_values.to_s + " violate invariant: #{name}"
end