Class: Itly::Plugin::Mixpanel::ErrorHandler

Inherits:
Mixpanel::ErrorHandler
  • Object
show all
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

Raises:

  • (Itly::RemoteError)


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