Class: Cuprum::Errors::MultipleErrors
- Inherits:
-
Cuprum::Error
- Object
- Cuprum::Error
- Cuprum::Errors::MultipleErrors
- Defined in:
- lib/cuprum/errors/multiple_errors.rb
Overview
Error wrapping multiple errors from a collection command.
Constant Summary collapse
- TYPE =
Short string used to identify the type of error.
'cuprum.errors.multiple_errors'
Instance Attribute Summary collapse
-
#errors ⇒ Array<Cuprum::Error>
readonly
The wrapped errors.
Attributes inherited from Cuprum::Error
Instance Method Summary collapse
-
#initialize(errors:, message: nil) ⇒ MultipleErrors
constructor
A new instance of MultipleErrors.
Methods inherited from Cuprum::Error
Constructor Details
#initialize(errors:, message: nil) ⇒ MultipleErrors
Returns a new instance of MultipleErrors.
15 16 17 18 19 20 21 22 |
# File 'lib/cuprum/errors/multiple_errors.rb', line 15 def initialize(errors:, message: nil) @errors = errors super( errors: errors, message: || ) end |
Instance Attribute Details
#errors ⇒ Array<Cuprum::Error> (readonly)
Returns the wrapped errors.
25 26 27 |
# File 'lib/cuprum/errors/multiple_errors.rb', line 25 def errors @errors end |