Exception: Dslh::ValidationError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root_errors) ⇒ ValidationError

Returns a new instance of ValidationError.



10
11
12
13
# File 'lib/dslh.rb', line 10

def initialize(root_errors)
  super(root_errors.map {|e| e.to_s }.join("\n"))
  @errors = root_errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



8
9
10
# File 'lib/dslh.rb', line 8

def errors
  @errors
end