Class: RgGen::DUH::ValidationError
- Inherits:
-
Core::LoadError
- Object
- Core::LoadError
- RgGen::DUH::ValidationError
- Defined in:
- lib/rggen/duh/exceptions.rb
Instance Method Summary collapse
-
#initialize(message, file_name, errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message, file_name, errors) ⇒ ValidationError
Returns a new instance of ValidationError.
9 10 11 12 |
# File 'lib/rggen/duh/exceptions.rb', line 9 def initialize(, file_name, errors) error_info = errors.map(&JSONSchemer::Errors.method(:pretty)).join("\n") super(, file_name, error_info) end |