Exception: ROM::AdapterNotPresentError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rom/constants.rb

Overview

Exception raised when a component is configured with an adapter that's not loaded

Instance Method Summary collapse

Constructor Details

#initialize(adapter, component) ⇒ AdapterNotPresentError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of AdapterNotPresentError.


14
15
16
17
18
19
# File 'lib/rom/constants.rb', line 14

def initialize(adapter, component)
  super(
    "Failed to find #{component} class for #{adapter} adapter. " \
    "Make sure ROM setup was started and the adapter identifier is correct."
  )
end