internal TemplateErrorEventArgs(TemplateException error) { this.error = error; }
protected virtual void OnError(TemplateException error) { if (Error != null) Error(this, new TemplateErrorEventArgs(error)); if (throwErrors) throw error; }