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.



76
77
78
79
# File 'lib/faulty/error.rb', line 76

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