Exception: StockMarkit::ApiException

Inherits:
Exception
  • Object
show all
Defined in:
lib/stock-markit/api_exception.rb

Overview

Api Exception Object

Copyright

Copyright © 2016 Michael Heijmans

License

MIT

Author:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "Api Error", api_results = nil) ⇒ ApiException

Returns a new instance of ApiException.



16
17
18
19
# File 'lib/stock-markit/api_exception.rb', line 16

def initialize(message="Api Error", api_results=nil)
  @api_results = api_results
  super(message)
end

Instance Attribute Details

#api_resultsString (readonly)

The httparty object for inspecting

Returns:

  • (String)

    the current value of api_results



12
13
14
# File 'lib/stock-markit/api_exception.rb', line 12

def api_results
  @api_results
end

#messageString (readonly)

The Error Message

Returns:

  • (String)

    the current value of message



12
13
14
# File 'lib/stock-markit/api_exception.rb', line 12

def message
  @message
end