Exception: RedCross::Trackers::HttpTracker::FailedPushingToEventbus
- Inherits:
-
Exception
- Object
- Exception
- RedCross::Trackers::HttpTracker::FailedPushingToEventbus
- Defined in:
- lib/red_cross/trackers/http_tracker.rb
Instance Method Summary collapse
-
#initialize(code, route, return_code) ⇒ FailedPushingToEventbus
constructor
A new instance of FailedPushingToEventbus.
- #to_s ⇒ Object
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_s ⇒ Object
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 |