abstract class Lucky::ErrorAction

Included Modules

Defined in:

lucky/error_action.cr

Constant Summary

EXPOSURES = [] of Symbol

Constructors

Macro Summary

Instance Method Summary

Macros inherited from module Lucky::Exposable

expose(method_name) expose

Instance methods inherited from module Lucky::Redirectable

redirect(to route : Lucky::RouteHelper, status = Lucky::Redirectable.settings.redirect_status) : Lucky::TextResponse
redirect(to action : Lucky::Action.class, status = Lucky::Redirectable.settings.redirect_status) : Lucky::TextResponse
redirect(to path : String, status : HTTP::Status) : Lucky::TextResponse
redirect(to path : String, status : Int32 = Lucky::Redirectable.settings.redirect_status) : Lucky::TextResponse
redirect
, redirect_back(*, fallback : Lucky::Action.class, status = Lucky::Redirectable.settings.redirect_status, allow_external = false) : Lucky::TextResponse
redirect_back(*, fallback : Lucky::RouteHelper, status = Lucky::Redirectable.settings.redirect_status, allow_external = false) : Lucky::TextResponse
redirect_back(*, fallback : String, status : HTTP::Status, allow_external = false) : Lucky::TextResponse
redirect_back(*, fallback : String, status : Int32 = Lucky::Redirectable.settings.redirect_status, allow_external : Bool = false) : Lucky::TextResponse
redirect_back
, settings settings

Class methods inherited from module Lucky::Redirectable

configure(&) configure, settings settings

Instance methods inherited from module Lucky::Renderable

component(comp : Lucky::BaseComponent.class, status : Int32 | Nil = nil, **named_args) : Lucky::TextResponse
component(comp : Lucky::BaseComponent.class, status : HTTP::Status, **named_args) : Lucky::TextResponse
component
, data(data : String, content_type : String = "application/octet-stream", disposition : String = "attachment", filename : String | Nil = nil, status : Int32 | Nil = nil) : Lucky::DataResponse data, file(path : String, content_type : String | Nil = nil, disposition : String = "attachment", filename : String | Nil = nil, status : Int32 | Nil = nil) : Lucky::FileResponse
file(path : String, content_type : String | Nil = nil, disposition : String = "attachment", filename : String | Nil = nil, status : HTTP::Status = HTTP::Status::OK) : Lucky::FileResponse
file
, head(status : Int32) : Lucky::TextResponse
head(status : HTTP::Status) : Lucky::TextResponse
head
, html_content_type html_content_type, json(body, status : Int32 | Nil = nil, content_type : String = json_content_type) : Lucky::TextResponse
json(body, status : HTTP::Status, content_type : String = json_content_type) : Lucky::TextResponse
json
, json_content_type json_content_type, plain_content_type plain_content_type, plain_text(body : String, status : Int32 | Nil = nil, content_type : String = plain_content_type) : Lucky::TextResponse
plain_text(body : String, status : HTTP::Status, content_type : String = plain_content_type) : Lucky::TextResponse
plain_text
, raw_json(body : String, status : Int32 | Nil = nil, content_type : String = json_content_type) : Lucky::TextResponse
raw_json(body : String, status : HTTP::Status, content_type : String = json_content_type) : Lucky::TextResponse
raw_json
, send_text_response(body : String, content_type : String, status : Int32 | Nil = nil) : Lucky::TextResponse send_text_response, xml(body : String, status : Int32 | Nil = nil, content_type : String = xml_content_type) : Lucky::TextResponse
xml(body, status : HTTP::Status, content_type : String = xml_content_type) : Lucky::TextResponse
xml
, xml_content_type xml_content_type

Macros inherited from module Lucky::Renderable

disable_cookies disable_cookies, html(page_class = nil, _with_status_code = 200, **assigns) html, html_with_status(page_class, status, **assigns) html_with_status

Instance methods inherited from module Lucky::ParamHelpers

params : Lucky::Params params, params__tuple_cached : Tuple(Lucky::Params) params__tuple_cached, params__uncached : Lucky::Params params__uncached

Instance methods inherited from class Object

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

Constructor Detail

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

[View source]

Macro Detail

macro dont_report(exception_classes) #

[View source]

Instance Method Detail

def _dont_report #

[View source]
def context : HTTP::Server::Context #

[View source]
def cookies(*args, **options) #

def cookies(*args, **options, &) #

abstract def default_render(error : Exception) : Lucky::Response #

[View source]
def flash(*args, **options) #

def flash(*args, **options, &) #

def perform_action(error : Exception) #

[View source]
def render_exception_page(error : Exception, status : Int) : Lucky::Response #

[View source]
abstract def report(error : Exception) : Nil #

[View source]
def request(*args, **options) #

def request(*args, **options, &) #

def response(*args, **options) #

def response(*args, **options, &) #

def session(*args, **options) #

def session(*args, **options, &) #