Exception: Samvera::NestingIndexer::Exceptions::ReindexingError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RuntimeError
- Samvera::NestingIndexer::Exceptions::ReindexingError
- Defined in:
- lib/samvera/nesting_indexer/exceptions.rb
Overview
A wrapper exception that includes the original exception and the id
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
Instance Method Summary collapse
-
#initialize(id, original_exception) ⇒ ReindexingError
constructor
A new instance of ReindexingError.
Constructor Details
#initialize(id, original_exception) ⇒ ReindexingError
Returns a new instance of ReindexingError.
66 67 68 69 70 |
# File 'lib/samvera/nesting_indexer/exceptions.rb', line 66 def initialize(id, original_exception) @id = id @original_exception = original_exception super "ReindexingError on ID=#{id.inspect}\n\t#{original_exception}" end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
65 66 67 |
# File 'lib/samvera/nesting_indexer/exceptions.rb', line 65 def id @id end |
#original_exception ⇒ Object (readonly)
Returns the value of attribute original_exception.
65 66 67 |
# File 'lib/samvera/nesting_indexer/exceptions.rb', line 65 def original_exception @original_exception end |