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)
-
- (Object) pattern
readonly
Returns the value of attribute pattern.
-
- (Object) position
readonly
Returns the value of attribute position.
Instance Method Summary (collapse)
-
- (Invalid) initialize(source, position)
constructor
A new instance of Invalid.
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 |