Exception: Meta::JsonSchema::ValidationError

Inherits:
ValidationErrors show all
Defined in:
lib/meta/json_schema/support/errors.rb

Instance Attribute Summary

Attributes inherited from ValidationErrors

#errors

Instance Method Summary collapse

Methods inherited from ValidationErrors

#prepend_root

Constructor Details

#initialize(message) ⇒ ValidationError

Returns a new instance of ValidationError.



29
30
31
# File 'lib/meta/json_schema/support/errors.rb', line 29

def initialize(message)
  super('' => message)
end

Instance Method Details

#messageObject



33
34
35
# File 'lib/meta/json_schema/support/errors.rb', line 33

def message
  errors['']
end