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

- (Invalid) initialize(source, position)

A new instance of Invalid



139
140
141
142
143
# File 'lib/uri_template/rfc6570.rb', line 139

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

Instance Attribute Details

- (Object) pattern (readonly)

Returns the value of attribute pattern



137
138
139
# File 'lib/uri_template/rfc6570.rb', line 137

def pattern
  @pattern
end

- (Object) position (readonly)

Returns the value of attribute position



137
138
139
# File 'lib/uri_template/rfc6570.rb', line 137

def position
  @position
end