Exception: JsonSchemaRails::SchemaParseError

Inherits:
Error
  • Object
show all
Defined in:
lib/json_schema_rails/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, schema = nil) ⇒ SchemaParseError

Returns a new instance of SchemaParseError.



13
14
15
16
# File 'lib/json_schema_rails/errors.rb', line 13

def initialize(message, schema = nil)
  super(message)
  @schema = schema
end

Instance Attribute Details

#schemaObject (readonly)

Returns the value of attribute schema.



11
12
13
# File 'lib/json_schema_rails/errors.rb', line 11

def schema
  @schema
end