wrapped exceptions

Who the fuck would catch, log, AND THEN RETHROW an exception? Dear lord. If you’re throwing it, let the top layer deal with it, dumbass. That includes logging it.

Sometimes I really hate java exceptions.

Update: I was referring to this post. And my invocations of dumbassedness includes catching, logging, then wrapping (as you may have guessed from the title). Rethrowing or nesting means “I’m not dealing with this, you have to”. So don’t log it. That’s for the top layer to decide. Log if you swallow.

This entry was posted in tech. Bookmark the permalink.

One Response to wrapped exceptions

  1. Keith Garner says:

    Hmm…In Jamm I’ve been catching an exception, logging it, and then throwing a different exception. For a second there I thought you were bitching about jamm :)