class Kemal::Exceptions::RouteNotFound

Overview

Raised when no route matches the request.

The message is the bare status reason, as with MethodNotAllowed: an error 404 handler commonly returns ex.message, and the response is text/html, so anything from the request in it would be reflected markup. The request itself is reachable through #context.

Defined in:

kemal/helpers/exceptions.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : HTTP::Server::Context) #

[View source]

Instance Method Detail

def context : HTTP::Server::Context #

[View source]