More generic exception templates.