module BerkeleyLibrary::Logging::Formatters::ErrorCauseSerializer
Private helper classes
Public Instance Methods
serialize_exc(ex, serialized = Set.new)
click to toggle source
Calls superclass method
# File lib/berkeley_library/logging/formatters.rb, line 45 def serialize_exc(ex, serialized = Set.new) super(ex).tap do |result| next unless (cause = ex.cause) next if (serialized << ex).include?(cause) # prevent circular references result[:cause] = serialize_exc(cause, serialized) end end