Errors::Show
Inherits Lucky::RequestTypeHelpers / Lucky::ErrorAction / Lucky::Exposable / Lucky::Redirectable / Lucky::Renderable / Lucky::ActionDelegates / Reference / Object
Constants
DEFAULT_MESSAGE = "Something went wrong."
EXPOSURES = [] of Symbol
Instance methods
_dont_report
SourceIf none of the 'render' methods return a response for the raised Exception, Lucky will use this method.
render(error : Lucky::RouteNotFoundError | Avram::RecordNotFoundError)
Sourcerender(error : Avram::InvalidOperationError)
When the request is JSON and an InvalidOperationError is raised, show a helpful error with the param that is invalid, and what was wrong with it.
render(error : Lucky::RenderableError)
Always keep this below other 'render' methods or it may override your custom 'render' methods.