Exception: JsonSchema::AggregateError

Inherits:
Error
  • Object
show all
Defined in:
lib/json_schema/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ AggregateError

Returns a new instance of AggregateError.


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

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors


6
7
8
# File 'lib/json_schema/error.rb', line 6

def errors
  @errors
end

Instance Method Details

#to_sObject


12
13
14
# File 'lib/json_schema/error.rb', line 12

def to_s
  @errors.join(" ")
end