Class | Sequel::ValidationFailed
In: | lib/sequel/model/exceptions.rb
Parent: | Error

Exception class raised when `raise_on_save_failure` is set and validation fails

### Methods

new

### Attributes

errors | [R] |

### Public Class methods

new(errors)

[Source]

        # File lib/sequel/model/exceptions.rb, line 18
    18:     def initialize(errors)
    19:       if errors.respond_to?(:full_messages)
    20:         @errors = errors
    21:         super(errors.full_messages.join(', '))
    22:       else
    23:         super
    24:       end
    25:     end

[Validate]