Exception: Dslh::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Dslh::ValidationError
- Defined in:
- lib/dslh.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(root_errors, data) ⇒ ValidationError
constructor
A new instance of ValidationError.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'lib/dslh.rb', line 9 def data @data end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
8 9 10 |
# File 'lib/dslh.rb', line 8 def errors @errors end |