Catch multiple exceptions and rethrow exception in java