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, data) ⇒ ValidationError

Returns a new instance of ValidationError.



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

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

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



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

def data
  @data
end

#errorsObject (readonly)

Returns the value of attribute errors.



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

def errors
  @errors
end