class Itly::Plugin::Mixpanel::ErrorHandler

Error handler class used by Mixpanel::Tracker

Raise an Itly::RemoteError error in case of error

Public Instance Methods

handle(error) click to toggle source
# File lib/itly/plugin/mixpanel/error_handler.rb, line 15
def handle(error)
  raise Itly::RemoteError, "The client returned an error: #{error}"
end