Exception: Curate::Indexer::Exceptions::ReindexingError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/curate/indexer/exceptions.rb

Overview

A wrapper exception that includes the original exception and the pid

Instance Attribute Summary collapse

Instance Method Summary collapse

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_exceptionObject (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

#pidObject (readonly)

Returns the value of attribute pid.



16
17
18
# File 'lib/curate/indexer/exceptions.rb', line 16

def pid
  @pid
end