Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2017-01-09 13:35:38 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2017-01-09 13:35:38 +0300
commita0298904094582a0cae6be8defd623ad9d61ef10 (patch)
treea9676ec18df180e8c5758657d2fee38cddf1e108 /Duplicati/GUI
parentfc9f1b1dd36fd347904d58161d4556c5f2423f63 (diff)
Implemented better default error messsages
Diffstat (limited to 'Duplicati/GUI')
-rw-r--r--Duplicati/GUI/Duplicati.GUI.TrayIcon/HostedInstanceKeeper.cs2
-rw-r--r--Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs2
-rw-r--r--Duplicati/GUI/Duplicati.GUI.TrayIcon/WinFormsRunner.cs2
3 files changed, 3 insertions, 3 deletions
diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/HostedInstanceKeeper.cs b/Duplicati/GUI/Duplicati.GUI.TrayIcon/HostedInstanceKeeper.cs
index dc3f88b1e..bdff225d0 100644
--- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/HostedInstanceKeeper.cs
+++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/HostedInstanceKeeper.cs
@@ -42,7 +42,7 @@ namespace Duplicati.GUI.TrayIcon
if (m_runnerException != null)
throw m_runnerException;
else
- throw new Exception("Hosted server startup timed out");
+ throw new Duplicati.Library.Interface.UserInformationException("Hosted server startup timed out");
}
if (m_runnerException != null)
diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs
index 883a1c868..751395002 100644
--- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs
+++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs
@@ -215,7 +215,7 @@ namespace Duplicati.GUI.TrayIcon
else if (toolkit == TOOLKIT_RUMPS)
return GetRumpsRunnerInstance();
else
- throw new Exception(string.Format("The selected toolkit '{0}' is invalid", toolkit));
+ throw new UserInformationException(string.Format("The selected toolkit '{0}' is invalid", toolkit));
}
//We keep these in functions to avoid attempting to load the instance,
diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/WinFormsRunner.cs b/Duplicati/GUI/Duplicati.GUI.TrayIcon/WinFormsRunner.cs
index ece6b4d5f..635d2e1b4 100644
--- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/WinFormsRunner.cs
+++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/WinFormsRunner.cs
@@ -112,7 +112,7 @@ namespace Duplicati.GUI.TrayIcon.Windows
public override void Init (string[] args)
{
if (WinFormsRunner.Instance != null)
- throw new Exception("Multiple trayicon instances not allowed!");
+ throw new Duplicati.Library.Interface.UserInformationException("Multiple trayicon instances not allowed!");
WinFormsRunner.Instance = this;