Exception: Typed::Validations::MultipleValidationError
- Inherits:
-
ValidationError
- Object
- StandardError
- SerializationError
- DeserializeError
- ValidationError
- Typed::Validations::MultipleValidationError
- Extended by:
- T::Sig
- Defined in:
- lib/typed/validations/multiple_validation_error.rb
Instance Method Summary collapse
-
#initialize(errors:) ⇒ MultipleValidationError
constructor
A new instance of MultipleValidationError.
Methods inherited from DeserializeError
Methods inherited from SerializationError
Constructor Details
#initialize(errors:) ⇒ MultipleValidationError
Returns a new instance of MultipleValidationError.
9 10 11 12 13 |
# File 'lib/typed/validations/multiple_validation_error.rb', line 9 def initialize(errors:) = errors.map(&:message).join(" | ") super("Multiple validation errors found: #{}") end |