lib/sequel/model/exceptions.rb in sequel-3.13.0 vs lib/sequel/model/exceptions.rb in sequel-3.14.0
- old
+ new
@@ -1,13 +1,13 @@
module Sequel
- # Exception class raised when raise_on_save_failure is set and a before hook returns false
+ # Exception class raised when +raise_on_save_failure+ is set and a before hook returns false
class BeforeHookFailed < Error; end
- # Exception class raised when require_modification is set and an UPDATE or DELETE statement to modify the dataset doesn't
+ # Exception class raised when +require_modification+ is set and an UPDATE or DELETE statement to modify the dataset doesn't
# modify a single row.
class NoExistingObject < Error; end
- # Exception class raised when raise_on_save_failure is set and validation fails
+ # Exception class raised when +raise_on_save_failure+ is set and validation fails
class ValidationFailed < Error
def initialize(errors)
if errors.respond_to?(:full_messages)
@errors = errors
super(errors.full_messages.join(', '))