class

Lucky::RouteNotFoundHandler

Inherits HTTP::Handler < Reference < Object

This HTTP::Handler takes in the current context, then checks to see if a fallback_action has been defined to render that action first. If no fallback has been defined, then it will raise a Lucky::RouteNotFoundError exception.

This handler should be used after the Lucky::RouteHandler.

See Lucky::Routable.fallback for implementing the fallback_action.

Class methods

fallback_action
Source
fallback_action=(fallback_action : Lucky::Action.class | Nil)
Source

Instance methods