class Lucky::RouteNotFoundHandler
- Lucky::RouteNotFoundHandler
- Reference
- Object
Overview
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.
Included Modules
- HTTP::Handler
Defined in:
lucky/route_not_found_handler.crClass Method Summary
- .fallback_action : Lucky::Action.class | Nil
- .fallback_action=(fallback_action : Lucky::Action.class | Nil)