Class: RgGen::DUH::ValidationError

Inherits:
Core::LoadError
  • Object
show all
Defined in:
lib/rggen/duh/exceptions.rb

Instance Method Summary collapse

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(message, file_name, errors)
  error_info = errors.map(&JSONSchemer::Errors.method(:pretty)).join("\n")
  super(message, file_name, error_info)
end