public override void ProcessRecord() { try { DlpUtils.SaveOutOfBoxDlpTemplates(base.DataSession, this.templates); } catch (Exception ex) { if (!this.IsKnownException(ex)) { throw; } this.dataObject.WriteError(ex, ErrorCategory.InvalidOperation, null); } }