class Lucky::RouteNotFoundHandler


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

Defined in:


Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

blank? blank?, present? present?

Class Method Detail

def self.fallback_action : Lucky::Action.class? #

[View source]
def self.fallback_action=(fallback_action : Lucky::Action.class?) #

[View source]

Instance Method Detail

def call(context) #

[View source]