module Sentry::Utils::ExceptionCauseChain
def self.exception_to_array(exception)
def self.exception_to_array(exception) exceptions = [exception] while exception.cause exception = exception.cause break if exceptions.any? { |e| e.object_id == exception.object_id } exceptions << exception end exceptions end