Exception: DeferredException::ExceptionSet

Inherits:
StandardError
  • Object
show all
Defined in:
lib/deferred_exception/exception_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exceptions) ⇒ ExceptionSet

Returns a new instance of ExceptionSet.



5
6
7
# File 'lib/deferred_exception/exception_set.rb', line 5

def initialize(exceptions)
  self.exceptions = exceptions
end

Instance Attribute Details

#exceptionsObject

Returns the value of attribute exceptions.



3
4
5
# File 'lib/deferred_exception/exception_set.rb', line 3

def exceptions
  @exceptions
end

Instance Method Details

#messageObject



9
10
11
# File 'lib/deferred_exception/exception_set.rb', line 9

def message
  exceptions.map { |exception| individual_message(exception) }.join("\n#{'=' * 5}\n") 
end