On 28 Nov 2023, at 19:11, Graham Leggett <minf...@sharp.fm.INVALID> wrote:
>> In your debugger, when you break-on-exception, what happens if you allow the >> exception to propagate up to the first exception-handler? Does Tomcat >> swallow the exception? Or it it caught elsewhere? > > The exception eventually ends up inside ErrorReportValve, but I’m debugging a > remote box and don’t have any of the source code tied up - will do further > digging. So the reason we get a 400 Bad Request with no error detail is that we arrive at this line with throwable set to null: https://github.com/apache/tomcat/blob/9.0.x/java/org/apache/catalina/valves/ErrorReportValve.java#L129 With no throwable we are eventually led here, which is our generic “an error has occurred, not telling you what it is” page: https://github.com/apache/tomcat/blob/9.0.x/java/org/apache/catalina/valves/ErrorReportValve.java#L169 Regards, Graham —