Exception: Jschematic::SchemaNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jschematic/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ SchemaNotFoundError

Returns a new instance of SchemaNotFoundError.



17
18
19
# File 'lib/jschematic/exceptions.rb', line 17

def initialize(uri)
  @uri = uri
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



15
16
17
# File 'lib/jschematic/exceptions.rb', line 15

def uri
  @uri
end

Instance Method Details

#to_sObject



21
22
23
# File 'lib/jschematic/exceptions.rb', line 21

def to_s
  "Cannot find schema for reference '#{uri}'"
end