Exception: URITemplate::RFC6570::Invalid

Inherits:
StandardError
  • Object
show all
Includes:
Invalid
Defined in:
lib/uri_template/rfc6570.rb

Overview

This error is raised when an invalid pattern was given.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, position) ⇒ Invalid

Returns a new instance of Invalid.



196
197
198
199
200
# File 'lib/uri_template/rfc6570.rb', line 196

def initialize(source, position)
  @pattern = source
  @position = position
  super("Invalid expression found in #{source.inspect} at #{position}: '#{source[position..-1]}'")
end

Instance Attribute Details

#patternObject (readonly)

Returns the value of attribute pattern.



194
195
196
# File 'lib/uri_template/rfc6570.rb', line 194

def pattern
  @pattern
end

#positionObject (readonly)

Returns the value of attribute position.



194
195
196
# File 'lib/uri_template/rfc6570.rb', line 194

def position
  @position
end