Exception: RedCross::Trackers::HttpTracker::FailedPushingToEventbus

Inherits:
Exception
  • Object
show all
Defined in:
lib/red_cross/trackers/http_tracker.rb

Instance Method Summary collapse

Constructor Details

#initialize(code, route, return_code) ⇒ FailedPushingToEventbus

Returns a new instance of FailedPushingToEventbus.



5
6
7
8
9
# File 'lib/red_cross/trackers/http_tracker.rb', line 5

def initialize(code, route, return_code)
  @code = code
  @route = route
  @return_code = return_code
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/red_cross/trackers/http_tracker.rb', line 11

def to_s
  "Failed pushing to Eventbus. Error code: #{@code}, route: #{@route} Error: #{@return_code.to_s}"
end