Exception: Teaspoon::UnknownFormatter

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

Instance Method Summary collapse

Constructor Details

#initialize(msg_or_options) ⇒ UnknownFormatter

Returns a new instance of UnknownFormatter.



55
56
57
58
59
# File 'lib/teaspoon/exceptions.rb', line 55

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