\( \text{BeCl}_2 \), \( \text{HgCl}_2 \), and \( \text{CO}_2 \) all have linear structures due to their respective electron configurations. However, \( \text{SnCl}_2 \) has a bent structure due to the lone pair on the central atom, making it the exception.