Update yesod-core/src/Yesod/Core/Class/Yesod.hs
Co-authored-by: patrick brisbin <pbrisbin@gmail.com>
This commit is contained in:
parent
dd2ba40873
commit
69df01668a
@ -78,9 +78,9 @@ class RenderRoute site => Yesod site where
|
|||||||
-- allows the user to specify how exceptions are cought.
|
-- allows the user to specify how exceptions are cought.
|
||||||
-- by default all async exceptions are thrown and synchronous
|
-- by default all async exceptions are thrown and synchronous
|
||||||
-- exceptions render a 500 page.
|
-- exceptions render a 500 page.
|
||||||
-- One could override this for example to catch all exceptions
|
-- To catch all exceptions (even async) to render a 500 page,
|
||||||
-- aside connection closed by peer to let yesod do more 500 page
|
-- set this to 'UnliftIO.Exception.catchSyncOrAsync'. Beware
|
||||||
-- rendering (instead of warp).
|
-- this may have negative effects with functions like 'timeout'.
|
||||||
catchHandlerExceptions :: MonadUnliftIO m => site -> m a -> (SomeException -> m a) -> m a
|
catchHandlerExceptions :: MonadUnliftIO m => site -> m a -> (SomeException -> m a) -> m a
|
||||||
catchHandlerExceptions _ = catch
|
catchHandlerExceptions _ = catch
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user