Exception: Hanami::Router::UnknownHTTPStatusCodeError
- Defined in:
- lib/hanami/router/errors.rb
Overview
Error raised when an unknown HTTP status code is given.
Instance Method Summary collapse
-
#initialize(code) ⇒ UnknownHTTPStatusCodeError
constructor
private
A new instance of UnknownHTTPStatusCodeError.
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.
65 66 67 |
# File 'lib/hanami/router/errors.rb', line 65 def initialize(code) super("Unknown HTTP status code: #{code.inspect}") end |