Exception: Pathtraq::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pathtraq.rb

Instance Method Summary collapse

Constructor Details

#initialize(res, params) ⇒ Error

Returns a new instance of Error.



113
114
115
116
# File 'lib/pathtraq.rb', line 113

def initialize(res, params)
  @result = res
  @params = params
end

Instance Method Details

#messageObject



118
119
120
# File 'lib/pathtraq.rb', line 118

def message
  "Maybe caused by invalid query: #{@params}"
end