Exception: Teaspoon::UnknownDriver

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

Instance Method Summary collapse

Constructor Details

#initialize(msg_or_options) ⇒ UnknownDriver

Returns a new instance of UnknownDriver.



47
48
49
50
51
# File 'lib/teaspoon/exceptions.rb', line 47

def initialize(msg_or_options)
  super(build_message(msg_or_options) do |options|
    "Unknown driver: expected \"#{options[:name]}\" to be a registered driver. Available drivers are #{options[:available]}"
  end)
end