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

Exception class raised when raise_on_save_failure is set and a before hook returns false or an around hook doesn‘t call super or yield.

Methods

new  

Attributes

model  [R]  The Sequel::Model instance related to this error.

Public Class methods

[Source]

    # File lib/sequel/model/exceptions.rb, line 10
10:     def initialize(message=nil, model=nil)
11:       @model = model
12:       super(message)
13:     end

[Validate]