Class: Concurrent::MultipleErrors

Inherits:
Error
  • Object
show all
Defined in:
lib/concurrent-ruby/concurrent/errors.rb

Overview

Aggregates multiple exceptions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors, message = "#{errors.size} errors") ⇒ MultipleErrors

Returns a new instance of MultipleErrors.



61
62
63
64
65
66
# File 'lib/concurrent-ruby/concurrent/errors.rb', line 61

def initialize(errors, message = "#{errors.size} errors")
  @errors = errors
  super [*message,
         *errors.map { |e| [format('%s (%s)', e.message, e.class), *e.backtrace] }.flatten(1)
        ].join("\n")
end

Instance Attribute Details

#errorsundocumented (readonly)

Returns the value of attribute errors.



59
60
61
# File 'lib/concurrent-ruby/concurrent/errors.rb', line 59

def errors
  @errors
end
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy