class Lucky::RouteNotFoundHandler

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

Defined in:

lucky/route_not_found_handler.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

blank? : Bool blank?, present? : Bool present?

Class Method Detail

def self.fallback_action : Lucky::Action.class | Nil #

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

[View source]

Instance Method Detail

def call(context) #

[View source]