class Hanami::Controller::UnknownFormatError

Unknown format error

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

@since 0.2.0

@see Hanami::Action::Mime#format=

Public Class Methods

new(format) click to toggle source

@since 0.2.0 @api private

Calls superclass method
# File lib/hanami/controller.rb, line 45
def initialize(format)
  super("Cannot find a corresponding Mime type for '#{ format }'. Please configure it with Hanami::Controller::Configuration#format.")
end