Create exceptions before throwing them