Exception: Dry::Types::MultipleError
- Inherits:
-
CoercionError
- Object
- StandardError
- CoercionError
- Dry::Types::MultipleError
- Defined in:
- lib/dry/types/errors.rb
Overview
Collection of multiple errors
Instance Attribute Summary collapse
- #errors ⇒ Array<CoercionError> readonly
Instance Method Summary collapse
-
#initialize(errors) ⇒ MultipleError
constructor
A new instance of MultipleError.
-
#message ⇒ Object
String.
- #meta ⇒ Array
Methods inherited from CoercionError
Constructor Details
#initialize(errors) ⇒ MultipleError
Returns a new instance of MultipleError.
53 54 55 56 |
# File 'lib/dry/types/errors.rb', line 53 def initialize(errors) super("") @errors = errors end |
Instance Attribute Details
#errors ⇒ Array<CoercionError> (readonly)
50 51 52 |
# File 'lib/dry/types/errors.rb', line 50 def errors @errors end |
Instance Method Details
#message ⇒ Object
Returns string.
59 60 61 |
# File 'lib/dry/types/errors.rb', line 59 def errors.map(&:message).join(", ") end |