catchCGI

catchCGI :: (MonadCGI m, MonadCatchIO m) => m a -> (SomeException -> m a) -> m a
cgi Network.CGI.Monad, cgi Network.CGI
Catches any expection thrown by a CGI action, and uses the given exception handler if an exception is thrown.