5
jkuhl
4y

When you see a try/catch block where the catch simply throws the caught exception:

try { /*stuff*/ } catch (Exception e) { throw e }

*headdesk*

Comments
  • 0
    Mind blowing code style
  • 3
    See also: the Big Sky policy

    Edit: I couldn't find a link right away, but it was the idiotic policy basically stating "just leave junk in orbit because it's a really big place and we won't need to worry about it."

    Now we have millions of micrometeorites to worry about. Good job!
  • 0
    Better than swallowing it.
  • 0
    sometimes it just makes it more clear to any other devs working on the project that an exception can be thrown from the try block..
Add Comment