handle +cgi

handleErrors :: (MonadCGI m, MonadCatchIO m) => m CGIResult -> m CGIResult
cgi Network.CGI
Catches any exception thrown by the given CGI action, returns an error page with a 500 Internal Server Error, showing the exception information, and logs the error. Typical usage: > cgiMain :: CGI CGIResult > cgiMain = ... > > main :: IO () > main = runCGI (handleErrors cgiMain)
handleExceptionCGI :: (MonadCGI m, MonadCatchIO m) => m a -> (SomeException -> m a) -> m a
cgi Network.CGI.Monad, cgi Network.CGI
Deprecated: Use catchCGI instead.