class Sequel::Error

  1. lib/sequel/exceptions.rb
Superclass: StandardError

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

Methods

Public Instance

  1. cause
  2. wrapped_exception

Attributes

wrapped_exception [RW]

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

Public Instance methods

cause ()

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

[show source]
# File lib/sequel/exceptions.rb, line 13
def cause
  wrapped_exception || super
end