Why use the 'instanceof' Java operator when you can rethrow an exception?
The Weird and The Wonderful
1
Posts
1
Posters
0
Views
1
Watching
-
It seems this coder didn't see the point of the Java "instanceof" operator:
protected void processException(Throwable e)
throws ParqProsaException
{
try
{
throw e;
}
catch(SQLException se)
{
ParqSQLSadException pre = new ParqSQLSadException(se);
throw new ParqErrorContainerException(pre, " ... ");
}
catch(Throwable exx)
{
super.processException(exx);
}
}