Exception: JSON::Schema::ReadError
- Inherits:
-
StandardError
- Object
- StandardError
- JSON::Schema::ReadError
- Defined in:
- lib/json-schema/schema/reader.rb
Overview
Base for any reading exceptions encountered by Reader
Direct Known Subclasses
Instance Attribute Summary collapse
-
#location ⇒ String
readonly
The requested schema location which was refused.
-
#type ⇒ Symbol
readonly
Either
:uri
or:file
.
Instance Method Summary collapse
-
#initialize(location, type) ⇒ ReadError
constructor
A new instance of ReadError.
Constructor Details
#initialize(location, type) ⇒ ReadError
Returns a new instance of ReadError.
14 15 16 17 18 |
# File 'lib/json-schema/schema/reader.rb', line 14 def initialize(location, type) @location = location @type = type super() end |
Instance Attribute Details
#location ⇒ String (readonly)
Returns the requested schema location which was refused.
9 10 11 |
# File 'lib/json-schema/schema/reader.rb', line 9 def location @location end |
#type ⇒ Symbol (readonly)
Returns either :uri
or :file
.
12 13 14 |
# File 'lib/json-schema/schema/reader.rb', line 12 def type @type end |