Exception: Teaspoon::DriverOptionsError

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

Instance Method Summary collapse

Constructor Details

#initialize(msg_or_options) ⇒ DriverOptionsError

Returns a new instance of DriverOptionsError.



133
134
135
136
137
# File 'lib/teaspoon/exceptions.rb', line 133

def initialize(msg_or_options)
  super(build_message(msg_or_options) do |options|
    "Malformed driver options#{options[:types] ? ": expected a valid #{options[:types]}." : '.'}"
  end)
end