Error
raised when the user requests a record via the first! or similar method, and the dataset does not yield any rows.
Attributes
dataset | [RW] |
The dataset that raised this |
Public Class methods
new(msg=nil)
If the first argument is a Sequel::Dataset
, set the dataset related to the exception to that argument, instead of assuming it is the exception message.
[show source]
# File lib/sequel/exceptions.rb 104 def initialize(msg=nil) 105 if msg.is_a?(Sequel::Dataset) 106 @dataset = msg 107 msg = nil 108 end 109 super 110 end