private void SetBaseInfo(beRemoteExInfoPackage exInfo) { info_package = exInfo; switch (info_package.ExceptionUrgency) { case Definitions.ExceptionUrgency.MINOR: Logger.Verbose(String.Format("{0}", this), EventId); break; case Definitions.ExceptionUrgency.MAJOR: Logger.Warning(String.Format("{0}", this), EventId); break; default: case Definitions.ExceptionUrgency.SIGNIFICANT: case Definitions.ExceptionUrgency.STOP: TrayIcon.TrayIconInstance.Icon.BalloonTipClicked += Icon_BalloonTipClicked; TrayIcon.TrayIconInstance.Icon.BalloonTipClosed += Icon_BalloonTipClosed; notificationVisible = true; TrayIcon.TrayIconInstance.ShowNotification(String.Format("Exception thrown at: \r\n{0}\r\nException urgency: [{1}] {2}", this.info_package.ModuleNameFull, (int)this.info_package.ExceptionUrgency, this.info_package.ExceptionUrgency), this); Logger.Error(String.Format("{0}", this), EventId); break; //TrayIcon.TrayIconInstance.ShowNotification(String.Format("Exception thrown at: \r\n{0}\r\nException urgency: [{1}] {2}", this.info_package.ModuleNameFull, (int)this.info_package.ExceptionUrgency, this.info_package.ExceptionUrgency)); //Logger.Error(String.Format("{0}", this), EventId); //break; } }
public beRemoteException(beRemoteExInfoPackage infoPackage, String message, Exception innerEx) : base(message, innerEx) { SetBaseInfo(infoPackage); }
public UnhandledUIException(beRemoteExInfoPackage infoPackage, String message, Exception innerEx) : base(infoPackage, message, innerEx) { }
public beRemoteException(beRemoteExInfoPackage infoPackage) { SetBaseInfo(infoPackage); }
public ExceptionInvalidConfiguration(beRemoteExInfoPackage infoPackage, String message) : base(infoPackage, message) { }