Exception: Samvera::NestingIndexer::Exceptions::ReindexingError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/samvera/nesting_indexer/exceptions.rb

Overview

A wrapper exception that includes the original exception and the id

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



65
66
67
# File 'lib/samvera/nesting_indexer/exceptions.rb', line 65

def id
  @id
end

#original_exceptionObject (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