Exception: Waw::Validation::Error

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

Direct Known Subclasses

KO

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(failed, msg = "Validation has failed #{failed.inspect}") ⇒ Error

Creates a validation error instance



9
10
11
12
# File 'lib/waw/validation/errors.rb', line 9

def initialize(failed, msg = "Validation has failed #{failed.inspect}")
  super(msg)
  @failed = failed
end

Instance Attribute Details

#failedObject

The list of failures



6
7
8
# File 'lib/waw/validation/errors.rb', line 6

def failed
  @failed
end