Copyright | (c) digitally induced GmbH 2020 |
---|---|
Safe Haskell | Safe-Inferred |
IHP.ErrorController
Description
Synopsis
- displayException :: (Show action, ?context :: ControllerContext, ?applicationContext :: ApplicationContext, ?requestContext :: RequestContext) => SomeException -> action -> Text -> IO ResponseReceived
- handleNoResponseReturned :: (Show controller, ?context :: ControllerContext) => controller -> IO ResponseReceived
- handleNotFound :: (?context :: RequestContext) => IO ResponseReceived
- handleRouterException :: (?context :: RequestContext) => SomeException -> IO ResponseReceived
- buildNotFoundResponse :: forall context. (?context :: context, ConfigProvider context) => IO Response
Documentation
displayException :: (Show action, ?context :: ControllerContext, ?applicationContext :: ApplicationContext, ?requestContext :: RequestContext) => SomeException -> action -> Text -> IO ResponseReceived Source #
handleNoResponseReturned :: (Show controller, ?context :: ControllerContext) => controller -> IO ResponseReceived Source #
handleNotFound :: (?context :: RequestContext) => IO ResponseReceived Source #
Renders a 404 not found response. If a static/404.html exists, that is rendered instead of the IHP not found page
handleRouterException :: (?context :: RequestContext) => SomeException -> IO ResponseReceived Source #
buildNotFoundResponse :: forall context. (?context :: context, ConfigProvider context) => IO Response Source #