Exception: JSON::Schema::ReadRefused

Inherits:
StandardError
  • Object
show all
Defined in:
lib/json-schema/schema/reader.rb

Overview

Raised by Reader when one of its settings indicate a schema should not be readed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location, type) ⇒ ReadRefused



16
17
18
19
20
# File 'lib/json-schema/schema/reader.rb', line 16

def initialize(location, type)
  @location = location
  @type = type
  super("Read of #{type == :uri ? 'URI' : type} at #{location} refused!")
end

Instance Attribute Details

#locationString (readonly)



11
12
13
# File 'lib/json-schema/schema/reader.rb', line 11

def location
  @location
end

#typeSymbol (readonly)



14
15
16
# File 'lib/json-schema/schema/reader.rb', line 14

def type
  @type
end