Add exception code for template check