Exception: Faulty::FaultyMultiError

Inherits:
FaultyError
  • Object
show all
Defined in:
lib/faulty/error.rb

Overview

An error that wraps multiple other errors

Direct Known Subclasses

AllFailedError, PartialFailureError

Instance Method Summary collapse

Constructor Details

#initialize(message, errors) ⇒ FaultyMultiError

Returns a new instance of FaultyMultiError.


64
65
66
67
# File 'lib/faulty/error.rb', line 64

def initialize(message, errors)
  message = "#{message}: #{errors.map(&:message).join(', ')}"
  super(message)
end