Exception: URITemplate::RFC6570::Invalid
- Inherits:
-
StandardError
- Object
- StandardError
- URITemplate::RFC6570::Invalid
- Includes:
- Invalid
- Defined in:
- lib/uri_template/rfc6570.rb
Overview
This error is raised when an invalid pattern was given.
Instance Attribute Summary collapse
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(source, position) ⇒ Invalid
constructor
A new instance of Invalid.
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
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
194 195 196 |
# File 'lib/uri_template/rfc6570.rb', line 194 def pattern @pattern end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
194 195 196 |
# File 'lib/uri_template/rfc6570.rb', line 194 def position @position end |