Project

General

Profile

Improvements #10137

Uncaught exceptions in handleRequest crash the application

Added by Roel Standaert about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
04/08/2022
Due date:
% Done:

0%

Estimated time:

Description

In the past I wasn't quite so sure about whether or not we should catch all exceptions in WResource::handleRequest by default.

Arguments for catching exceptions:

  • programming errors don't crash the entire application, which is probably preferred in production

Arguments for not catching:

  • not catching makes developers using Wt notice the error, and allow them to debug and fix them. Catching and logging is less obvious than crashing.

I think we should catch by default, and perhaps allow developers to turn it off to facilitate debugging.

#1

Updated by Roel Standaert about 1 month ago

  • Description updated (diff)

Also available in: Atom PDF