Exception: Sequel::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sequel/exceptions.rb

Overview

The default exception class for exceptions raised by Sequel. All exception classes defined by Sequel are descendants of this class.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#wrapped_exceptionObject

If this exception wraps an underlying exception, the underlying exception is held here.



9
10
11
# File 'lib/sequel/exceptions.rb', line 9

def wrapped_exception
  @wrapped_exception
end

Instance Method Details

#causeObject

Returned the wrapped exception if one exists, otherwise use ruby’s default behavior.



16
17
18
# File 'lib/sequel/exceptions.rb', line 16

def cause
  wrapped_exception || super
end