Module: Dense::DenseError
- Defined in:
- lib/dense/methods.rb
Instance Attribute Summary collapse
-
#full_path ⇒ Object
Returns the value of attribute full_path.
-
#miss ⇒ Object
Returns the value of attribute miss.
Instance Method Summary collapse
-
#relabel(message) ⇒ Object
Used by some “clients” (like flor) to relabel (change the error message) a reraise.
Instance Attribute Details
#full_path ⇒ Object
Returns the value of attribute full_path.
125 126 127 |
# File 'lib/dense/methods.rb', line 125 def full_path @full_path end |
#miss ⇒ Object
Returns the value of attribute miss.
125 126 127 |
# File 'lib/dense/methods.rb', line 125 def miss @miss end |
Instance Method Details
#relabel(message) ⇒ Object
Used by some “clients” (like flor) to relabel (change the error message) a reraise.
130 131 132 133 134 135 136 137 138 139 |
# File 'lib/dense/methods.rb', line 130 def relabel() err = self.class.new() class << err; include DenseError; end err.set_backtrace(self.backtrace) err.full_path = self.full_path err.miss = self.miss err end |