Project

Profile

Help

Bug #5630

closed

Error cause is not set when IllegalStateException is thoron in ActiveSAXSource (Saxon 11)

Added by Octavian Nadolu over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2022-08-03
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
11, trunk
Fix Committed on Branch:
11, trunk
Fixed in Maintenance Release:
Platforms:
Java

Description

In net/sf/saxon/resource/ActiveSAXSource.java, when an Exception is cached, an IllegalStateException is throwed. Maybe you can set the cause in the IllegalStateException and not print the exception stack trace.

Instead of:

} catch (Exception x) {
       x.printStackTrace();
       throw new IllegalStateException();
 

Do something like:

} catch (Exception x) {
        throw new IllegalStateException(x);
 

Please register to edit this issue

Also available in: Atom PDF