Exception: Curate::Indexer::Exceptions::ReindexingError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RuntimeError
- Curate::Indexer::Exceptions::ReindexingError
- Defined in:
- lib/curate/indexer/exceptions.rb
Overview
A wrapper exception that includes the original exception and the pid
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
Instance Method Summary collapse
-
#initialize(pid, original_exception) ⇒ ReindexingError
constructor
A new instance of ReindexingError.
Constructor Details
#initialize(pid, original_exception) ⇒ ReindexingError
Returns a new instance of ReindexingError.
17 18 19 20 21 |
# File 'lib/curate/indexer/exceptions.rb', line 17 def initialize(pid, original_exception) @pid = pid @original_exception = original_exception super "Error PID=#{pid} - #{original_exception}" end |
Instance Attribute Details
#original_exception ⇒ Object (readonly)
Returns the value of attribute original_exception.
16 17 18 |
# File 'lib/curate/indexer/exceptions.rb', line 16 def original_exception @original_exception end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
16 17 18 |
# File 'lib/curate/indexer/exceptions.rb', line 16 def pid @pid end |