Exception
is the parent class of all exceptions and ideally (Preferred approach - Best Coding Practice), you should never catch Exception
unless you are not sure what is going to be thrown at Runtime in try block.
Since, in your code you are doing NumberFormat operation, which is a child class of Exception, you should not catch Exception (unless other 2 methods may throw unchecked exception) and instead, use:
try {
int Id = Integer.parseInt(idstr);
TypeInfo tempTypeInfo = getTypeInfo(String.valueOf(Id));\
updateTotalCount(tempTypeInfo);
} catch (NumberFormatException npe) {
npe.printStackTrace();
}