Treequel::

ValidationFailed

class
Superclass
Treequel::ModelError

Exception class raised when raise_on_save_failure is set and validation fails

Attributes

errors[R]

the validation errors

Public Class Methods

anchor
new( errors )

Create a new Treequel::ValidationFailed exception with the given errors.

# File lib/treequel/exceptions.rb, line 33
def initialize( errors )
        if errors.respond_to?( :full_messages )
                @errors = errors
                super( errors.full_messages.join(', ') )
        else
                super
        end
end