module Athena::HTTPKernel::ErrorRendererInterface
#
An AHK::ErrorRendererInterface converts an ::Exception into an AHTTP::Response.
The default implementation JSON serialize exceptions. However, it can be overridden to allow rendering errors differently, such as via HTML.
Direct including types
Athena::HTTPKernel::ErrorRenderer
Methods#
abstract #render(exception : ::Exception) : AHTTP::Response#
Renders the given exception into an AHTTP::Response.