lib/timber/events/exception.rb in timber-2.0.24 vs lib/timber/events/exception.rb in timber-2.1.0.rc1

- old
+ new

@@ -1,5 +1,8 @@ +require "timber/event" +require "timber/util" + module Timber module Events # The exception event is used to track exceptions. # # @note This event should be installed automatically through integrations, @@ -23,9 +26,10 @@ def to_hash {name: name, message: exception_message, backtrace: backtrace} end alias to_h to_hash + # Builds a hash representation of containing simply objects, suitable for serialization. def as_json(_options = {}) {:exception => to_hash} end def message \ No newline at end of file