public void InitializeWithCmisException() { string errorContent = "error content"; string message = "message"; var ex = new CmisBaseException(message, errorContent); var exception = new InteractionNeededException(message, ex); var underTest = new InteractionNeededEvent(exception); Assert.That(underTest.Description, Is.EqualTo(message)); Assert.That(underTest.Details, Is.EqualTo(errorContent)); }
/// <summary> /// Called when sync encounters a critical error (the syncronization has been stopped). /// </summary> protected void NotifySyncException(EventLevel level, CmisBaseException exception) { if (level == EventLevel.ERROR) { Logger.Error("Sync event (" + level + "): " + exception.GetType() + ", " + exception.Message, exception); } else { Logger.Info("Sync event (" + level + "): " + exception.GetType() + ", " + exception.Message); } Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Input, new Action(() => { OnEvent(new SyncronizationException(this, exception, level)); })); }
public SyncronizerEvent(DateTime date, SyncFolderSyncronizerBase source, CmisBaseException exception, EventLevel level) { this.Date = date; this.Source = source; this.Exception = exception; this.Level = level; }
public SyncronizationException(SyncFolderSyncronizerBase source, CmisBaseException exception, EventLevel level) : base(source, exception, level) { }
public SyncronizerEvent(SyncFolderSyncronizerBase source, CmisBaseException exception, EventLevel level) : this(DateTime.Now, source, exception, level) { }