Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 405 Bytes

PreserveStackTrace.md

File metadata and controls

8 lines (6 loc) · 405 Bytes

PreserveStackTrace

Category: pmd
Rule Key: pmd:PreserveStackTrace

⚠️ This rule is deprecated in favour of S1166.


Throwing a new exception from a catch block without passing the original exception into the new Exception will cause the true stack trace to be lost, and can make it difficult to debug effectively.