• 1 Post
  • 6 Comments
Joined 2 years ago
cake
Cake day: September 11th, 2023

help-circle


  • You can do either, but you usually do neither. The best way is to throw a new exception for your situation and add the caught exception as an inner exception. Because rethrowing resets the stack trace, removing the context from an exception message that is often pretty vague, and “bouncing” with throw; doesn’t tell the next exception handler that you already handled (part of) the exception.