class Sequel::HookFailed

  1. lib/sequel/model/exceptions.rb
Parent: Sequel

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

Public Class

  1. new

Public Instance

  1. model

Attributes

model [R]

The Sequel::Model instance related to this error.

Public Class methods

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