Class: Itly::Plugin::Mixpanel::ErrorHandler
- Inherits:
-
Mixpanel::ErrorHandler
- Object
- Mixpanel::ErrorHandler
- Itly::Plugin::Mixpanel::ErrorHandler
- Defined in:
- lib/itly/plugin/mixpanel/error_handler.rb
Overview
Error handler class used by Mixpanel::Tracker
Raise an Itly::RemoteError
error in case of error
Instance Method Summary collapse
Instance Method Details
#handle(error) ⇒ Object
15 16 17 |
# File 'lib/itly/plugin/mixpanel/error_handler.rb', line 15 def handle(error) raise Itly::RemoteError, "The client returned an error: #{error}" end |