Exception: JSON::Schema::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- JSON::Schema::ValidationError
- Defined in:
- lib/json-schema/validator.rb
Instance Attribute Summary collapse
-
#fragments ⇒ Object
readonly
Returns the value of attribute fragments.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(message, fragments, schema) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message, fragments, schema) ⇒ ValidationError
Returns a new instance of ValidationError.
14 15 16 17 18 19 |
# File 'lib/json-schema/validator.rb', line 14 def initialize(, fragments, schema) @fragments = fragments @schema = schema = "#{} in schema #{schema.uri}" super() end |
Instance Attribute Details
#fragments ⇒ Object (readonly)
Returns the value of attribute fragments.
12 13 14 |
# File 'lib/json-schema/validator.rb', line 12 def fragments @fragments end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
12 13 14 |
# File 'lib/json-schema/validator.rb', line 12 def schema @schema end |