class Sequel::NoMatchingRow
Error
raised when the user requests a record via the first! or similar method, and the dataset does not yield any rows.
Attributes
The dataset that raised this NoMatchingRow
exception.
Public Class Methods
Source
# File lib/sequel/exceptions.rb 109 def initialize(msg=nil) 110 if msg.is_a?(Sequel::Dataset) 111 @dataset = msg 112 msg = nil 113 end 114 super 115 end
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.
Calls superclass method