Last update: February 19, 2023 Declaration of Throws for Generic Exception Throwing overly broad exceptions promotes complex error handling code that is more likely to contain security vulnerabilities.