Wrap template rendering exception.