Exception: ROM::SQL::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ROM::SQL::Error
- Defined in:
- lib/rom/sql/error.rb
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
Instance Method Summary collapse
-
#initialize(original_exception) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(original_exception) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 |
# File 'lib/rom/sql/error.rb', line 8 def initialize(original_exception) super(original_exception.) @original_exception = original_exception set_backtrace(original_exception.backtrace) end |
Instance Attribute Details
#original_exception ⇒ Object (readonly)
Returns the value of attribute original_exception.
6 7 8 |
# File 'lib/rom/sql/error.rb', line 6 def original_exception @original_exception end |