Exception: Consently::UnknownProvider

Inherits:
Error
  • Object
show all
Defined in:
lib/consently.rb

Overview

A provider key that was never registered - almost always a typo in the initializer, so the message lists what is available.

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ UnknownProvider

Returns a new instance of UnknownProvider.



24
25
26
# File 'lib/consently.rb', line 24

def initialize(key)
  super("Unknown Consently provider #{key.inspect}. Available: #{Providers::Base.registry.keys.sort.join(", ")}")
end