class Sequel::HookFailed

  1. lib/sequel/model/exceptions.rb
Superclass: Error

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.

Methods

Public Class

  1. new

Public Instance

  1. model

Attributes

model [R]

The Sequel::Model instance related to this error.

Public Class methods

new(message=nil, model=nil)
[show source]
   # File lib/sequel/model/exceptions.rb
10 def initialize(message=nil, model=nil)
11   @model = model
12   super(message)
13 end