Exception: Pincers::BackendError
- Inherits:
-
ContextError
- Object
- StandardError
- Error
- ContextError
- 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
-
#initialize(_context, _exc) ⇒ BackendError
constructor
A new instance of BackendError.
Constructor Details
#initialize(_context, _exc) ⇒ BackendError
Returns a new instance of BackendError.
58 59 60 61 62 |
# File 'lib/pincers/errors.rb', line 58 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.
55 56 57 |
# File 'lib/pincers/errors.rb', line 55 def document @document end |
#original ⇒ Object (readonly)
Returns the value of attribute original.
56 57 58 |
# File 'lib/pincers/errors.rb', line 56 def original @original end |