Exception: Samvera::NestingIndexer::Exceptions::SolrKeyConfigurationError

Inherits:
ConfigurationError show all
Defined in:
lib/samvera/nesting_indexer/exceptions.rb

Overview

Danger, the SolrKey may not be configured correctly.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, config:) ⇒ SolrKeyConfigurationError

Returns a new instance of SolrKeyConfigurationError.



14
15
16
17
18
# File 'lib/samvera/nesting_indexer/exceptions.rb', line 14

def initialize(name:, config:)
  @name = name
  @config = config
  super "Expected #{name.inspect} to be set in Config #{config.inspect}"
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



13
14
15
# File 'lib/samvera/nesting_indexer/exceptions.rb', line 13

def config
  @config
end

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/samvera/nesting_indexer/exceptions.rb', line 13

def name
  @name
end