Exception: Typed::Validations::MultipleValidationError

Inherits:
ValidationError show all
Extended by:
T::Sig
Defined in:
lib/typed/validations/multiple_validation_error.rb

Instance Method Summary collapse

Methods inherited from DeserializeError

#to_h, #to_json

Methods inherited from SerializationError

#to_h, #to_json

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:)
  combined_message = errors.map(&:message).join(" | ")

  super("Multiple validation errors found: #{combined_message}")
end