class DeferredException::ExceptionSet
Attributes
exceptions[RW]
Public Class Methods
new(exceptions)
click to toggle source
# File lib/deferred_exception/exception_set.rb, line 5 def initialize(exceptions) self.exceptions = exceptions end
Public Instance Methods
message()
click to toggle source
# File lib/deferred_exception/exception_set.rb, line 9 def message exceptions.map { |exception| individual_message(exception) }.join("\n#{'=' * 5}\n") end
Private Instance Methods
individual_message(exception)
click to toggle source
# File lib/deferred_exception/exception_set.rb, line 14 def individual_message(exception) "#{exception.message}#{"\n#{exception.backtrace.join("\n")}" unless exception.backtrace.nil?}" end