Exception: Sequel::HookFailed
- Defined in:
- lib/sequel/model/exceptions.rb
Overview
Exception class raised when raise_on_save_failure
is set and an action is canceled in a hook. or an around hook doesn’t yield.
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
The Sequel::Model instance related to this error.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, model = nil) ⇒ HookFailed
constructor
A new instance of HookFailed.
Methods inherited from Error
Constructor Details
#initialize(message = nil, model = nil) ⇒ HookFailed
Returns a new instance of HookFailed.
10 11 12 13 |
# File 'lib/sequel/model/exceptions.rb', line 10 def initialize(=nil, model=nil) @model = model super() end |
Instance Attribute Details
#model ⇒ Object (readonly)
The Sequel::Model instance related to this error.
8 9 10 |
# File 'lib/sequel/model/exceptions.rb', line 8 def model @model end |