Exception: Lotus::Controller::UnknownFormatError

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

Overview

Unknown format error

This error is raised when a action sets a format that it isn’t recognized both by ‘Lotus::Controller::Configuration` and the list of Rack mime types

See Also:

  • Action::Mime#format=

Since:

  • 0.2.0

Instance Method Summary collapse

Constructor Details

#initialize(format) ⇒ UnknownFormatError

Returns a new instance of UnknownFormatError.

Since:

  • 0.2.0



40
41
42
# File 'lib/lotus/controller.rb', line 40

def initialize(format)
  super("Cannot find a corresponding Mime type for '#{ format }'. Please configure it with Lotus::Controller::Configuration#format.")
end