added template name to the exception