Exception: Sequel::Error
- 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.
Direct Known Subclasses
ConnectionExpiration::Retry, ConnectionValidator::Retry, DuplicateColumnError, HookFailed, MassAssignmentRestriction, Migrator::Error, NoMatchingRow, Plugins::Tree::TreeMultipleRootError, UnableToReacquireConnectionError, ValidationFailed
Instance Attribute Summary collapse
-
#wrapped_exception ⇒ Object
If this exception wraps an underlying exception, the underlying exception is held here.
Instance Method Summary collapse
-
#cause ⇒ Object
Returned the wrapped exception if one exists, otherwise use ruby’s default behavior.
Instance Attribute Details
#wrapped_exception ⇒ Object
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
#cause ⇒ Object
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 |