3 ms·
Exception chaining is a good thing. If your exception handler throws another exception, then knowing what caused the original exception is really good to know
by Sohcahtoa82 2y ago
Exception chaining is a good thing.
If your exception handler throws another exception, then knowing what caused the original exception is really good to know and greatly helps debugging, especially if your code is calling the handling code incorrectly. Without chaining, the root cause of the second exception would be hidden.
If you find the chained exception output confusing, that's literally a skill issue. It's giving you invaluable information. Learn what it's telling you and you can fix bugs far more easily.