Exception: Vanagon::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Vanagon::Error
- Defined in:
- lib/vanagon/errors.rb
Overview
An error class that accepts a wrapped error message
Direct Known Subclasses
Instance Attribute Summary collapse
-
#original ⇒ Object
Returns the value of attribute original.
Class Method Summary collapse
-
.wrap(original, mesg) ⇒ Vanagon::Error
Generate a wrapped exception.
Instance Attribute Details
#original ⇒ Object
Returns the value of attribute original.
5 6 7 |
# File 'lib/vanagon/errors.rb', line 5 def original @original end |
Class Method Details
.wrap(original, mesg) ⇒ Vanagon::Error
Generate a wrapped exception
13 14 15 16 17 18 |
# File 'lib/vanagon/errors.rb', line 13 def self.wrap(original, mesg) new(mesg).tap do |e| e.set_backtrace(caller(4)) e.original = original end end |