Exception: Janeway::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Janeway::Error
- Defined in:
- lib/janeway/error.rb
Overview
Error class for Janeway. Contains a copy of the jsonpath query string. Lexer errors may also include the index into the query string that points at which token was being lexed at the time of the error.
Direct Known Subclasses
Instance Attribute Summary collapse
- #location ⇒ Location? readonly
- #query ⇒ String readonly
Instance Method Summary collapse
-
#initialize(msg, query = nil, location = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, query = nil, location = nil) ⇒ Error
Returns a new instance of Error.
20 21 22 23 24 |
# File 'lib/janeway/error.rb', line 20 def initialize(msg, query = nil, location = nil) super("Jsonpath query #{query} - #{msg}") @query = query @location = location end |
Instance Attribute Details
#location ⇒ Location? (readonly)
15 16 17 |
# File 'lib/janeway/error.rb', line 15 def location @location end |
#query ⇒ String (readonly)
12 13 14 |
# File 'lib/janeway/error.rb', line 12 def query @query end |