class

Marten::Handlers::Defaults::Debug::ServerError

Inherits Marten::Handlers::Base < Marten::Handlers::XFrameOptions < Marten::Handlers::ContentSecurityPolicy < Marten::Handlers::Session < Marten::Handlers::RequestForgeryProtection < Marten::Handlers::Flash < Marten::Handlers::Cookies < Marten::Handlers::ExceptionHandling < Marten::Handlers::Callbacks < Marten::Core::DebugModeLoggable < Reference < Object

Handles server errors in debug mode.

Instance methods

bind_error(error : Exception)
Source
dispatch

Triggers the execution of the handler in order to produce an HTTP response.

This method will be called by the Marten server when it comes to produce an HTTP response once a handler has been identified for the considered route. This method will execute the handler method associated with the considered HTTP method (eg. #get for the GET method) in order to return the final HTTP response. A 405 response will be returned if the considered HTTP method is not allowed. The #dispatch method can also be overridden on a per-handler basis in order to implement any other arbitrary logics if necessary.

Source
error
Source
frames
Source
status=(status : Int32)
Source
template_snippet_lines
Source

Nested types