Exception class raised when raise_on_save_failure
is set and
validation fails
the validation 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