Tag - different exceptions in java