Method: Janeway::Error#initialize

Defined in:
lib/janeway/error.rb

#initialize(message, query = nil, location = nil) ⇒ Error

Returns a new instance of Error.

Parameters:

  • message (String)

    error message

  • query (String) (defaults to: nil)

    entire query string

  • location (Location) (defaults to: nil)

    location of error



17
18
19
20
21
# File 'lib/janeway/error.rb', line 17

def initialize(message, query = nil, location = nil)
  super("Jsonpath query #{query} - #{message}")
  @query = query
  @location = location
end