Skanky exception, a dirty exception handler.

There was an interesting question posted on StackOverflow (asked on 27 February 2010) about programming Jargons (New Programming Jargon you've coined). The question was, subsequently deleted due to not being a question. Jeff Atwood blogged the top 30 answers from the deleted post here but if you have reputable score on Stack Overflow can view the deleted question here

The interesting jargon that I fully agree with is the Pokemon Exception



Pokemon exception is when you surround your statements with try-catch and  catch all exceptions. In Java, all exceptions are caught by catching java.lang.Exception.

This, pokemon, exception can transform to a new exception I call Skanky Exception (not coined by me, but from a work colleague). A skanky exception is an exception, thrown from the catch block, that contains has no reference of the actual caught exception. Let me elaborate via code example:




The skanky exception is on line 8. This is a dirty way of throwing an exception as doesn't encapsulate the thrown exception as a cause. Instead, it requires the developer to create a test environment, identical to live evironment, and recreate the problem step-by-step. If this is a severity 1 (critical priority issue), imagine the stress levels and coffee uptakes the developers undergoes to find the actual root cause of the problem.
This was coined of the phrase we tend to say, "she swallows and likes to give bad head. A dirty exception.".

I was, initially, going to post this on StackOverflow but since the question/post was deleted, I decided to blog this instead.

What are the other jargons you've coined or did you come across, that hasn't been listed on links I've provided? Let me know by commenting below.

Thanks for reading this post. 

 If you haven't noticed, I posted this post exactly 3 years after the original question asked on StackOverflow.

Comments