Exception: Hanami::Router::UnknownHTTPStatusCodeError

Inherits:
Error
  • Object
show all
Defined in:
lib/hanami/router/errors.rb

Overview

Error raised when an unknown HTTP status code is given.

See Also:

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ UnknownHTTPStatusCodeError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of UnknownHTTPStatusCodeError.

Since:

  • 2.0.0



65
66
67
# File 'lib/hanami/router/errors.rb', line 65

def initialize(code)
  super("Unknown HTTP status code: #{code.inspect}")
end