class JSON::Schema::ReadError

Base for any reading exceptions encountered by {JSON::Schema::Reader}

Attributes

location[R]

@return [String] the requested schema location which was refused

type[R]

@return [Symbol] either :uri or :file

Public Class Methods

new(location, type) click to toggle source
Calls superclass method
# File lib/json-schema/schema/reader.rb, line 14
def initialize(location, type)
  @location = location
  @type = type
  super(error_message)
end

Private Instance Methods

type_string() click to toggle source
# File lib/json-schema/schema/reader.rb, line 22
def type_string
  type == :uri ? 'URI' : type.to_s
end