Method: Sequel::NoMatchingRow#initialize
- Defined in:
- lib/sequel/exceptions.rb
#initialize(msg = nil) ⇒ NoMatchingRow
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.
61 62 63 64 65 66 67 |
# File 'lib/sequel/exceptions.rb', line 61 def initialize(msg=nil) if msg.is_a?(Sequel::Dataset) @dataset = msg msg = nil end super end |