Sha256: 5c86e539dfa3509c7e3a7d007426cff4b22c5e4a3a5d007b0e5b794c74643c64
Contents?: true
Size: 829 Bytes
Versions: 1
Compression:
Stored size: 829 Bytes
Contents
module ThinkingData ## # SDK error TDAnalyticsError = Class.new(StandardError) ## # SDK error: illegal parameter IllegalParameterError = Class.new(TDAnalyticsError) ## # SDK error: connection error ConnectionError = Class.new(TDAnalyticsError) ## # SDK error: server error ServerError = Class.new(TDAnalyticsError) ## # Error handler # # e.g. # class MyErrorHandler < ThinkingData::ErrorHandler # def handle(error) # puts error # raise error # end # end # # my_error_handler = MyErrorHandler.new # tracker = ThinkingData::TDAnalytics.new(consumer, my_error_handler) class TDErrorHandler ## # Override #handle to customize error handling def handle(error) false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thinkingdata-ruby-2.0.0 | lib/thinkingdata-ruby/td_errors.rb |