class Errors::Show
- Errors::Show
- Lucky::ErrorAction
- Reference
- Object
Overview
This class handles error responses and reporting.
https://luckyframework.org/guides/http-and-routing/error-handling
Included Modules
- Lucky::RequestTypeHelpers
Defined in:
actions/errors/show.crConstant Summary
-
DEFAULT_MESSAGE =
"Something went wrong."
-
EXPOSURES =
[] of Symbol
-
This class handles error responses and reporting.
https://luckyframework.org/guides/http-and-routing/error-handling
Instance Method Summary
- #_dont_report
-
#default_render(error : Exception) : Lucky::Response
If none of the 'render' methods return a response for the raised Exception, Lucky will use this method.
- #render(error : Lucky::RouteNotFoundError)
-
#render(error : Lucky::RenderableError)
Always keep this below other 'render' methods or it may override your custom 'render' methods.
Instance Method Detail
def default_render(error : Exception) : Lucky::Response
#
If none of the 'render' methods return a response for the raised Exception, Lucky will use this method.
def render(error : Lucky::RenderableError)
#
Always keep this below other 'render' methods or it may override your custom 'render' methods.