lib/sequel/model/exceptions.rb in sequel-3.23.0 vs lib/sequel/model/exceptions.rb in sequel-3.24.0
- old
+ new
@@ -1,7 +1,9 @@
module Sequel
# Exception class raised when +raise_on_save_failure+ is set and a before hook returns false
- class BeforeHookFailed < Error; end
+ # or an around hook doesn't call super or yield.
+ class HookFailed < Error; end
+ BeforeHookFailed = HookFailed
# 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