Exception: Bricolage::SQLException
- Inherits:
-
JobFailure
- Object
- StandardError
- ApplicationError
- JobFailure
- Bricolage::SQLException
- Defined in:
- lib/bricolage/exception.rb
Overview
various SQL exception
Direct Known Subclasses
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(msg, orig = nil) ⇒ SQLException
constructor
A new instance of SQLException.
Constructor Details
#initialize(msg, orig = nil) ⇒ SQLException
Returns a new instance of SQLException.
20 21 22 23 |
# File 'lib/bricolage/exception.rb', line 20 def initialize(msg, orig = nil) super msg @original = orig end |
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
25 26 27 |
# File 'lib/bricolage/exception.rb', line 25 def original @original end |
Class Method Details
.wrap(ex) ⇒ Object
16 17 18 |
# File 'lib/bricolage/exception.rb', line 16 def SQLException.wrap(ex) new(ex., ex) end |