Exception: Pincers::BackendError
- Inherits:
-
NavigationError
- Object
- StandardError
- Error
- ContextError
- NavigationError
- Pincers::BackendError
- Defined in:
- lib/pincers/errors.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Attributes inherited from ContextError
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(_context, _exc) ⇒ BackendError
constructor
A new instance of BackendError.
Constructor Details
#initialize(_context, _exc) ⇒ BackendError
Returns a new instance of BackendError.
66 67 68 69 70 |
# File 'lib/pincers/errors.rb', line 66 def initialize(_context, _exc) super _context, "#{_exc.class.to_s}: #{_exc.}" @document = _context.root.document @original = _exc end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
63 64 65 |
# File 'lib/pincers/errors.rb', line 63 def document @document end |
#original ⇒ Object (readonly)
Returns the value of attribute original.
64 65 66 |
# File 'lib/pincers/errors.rb', line 64 def original @original end |
Instance Method Details
#backtrace ⇒ Object
72 73 74 75 |
# File 'lib/pincers/errors.rb', line 72 def backtrace # IDEA: join backtraces? @original.backtrace end |