diff options
author | sr55 <[email protected]> | 2011-09-26 20:57:50 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-09-26 20:57:50 +0000 |
commit | 93c56509e64cf7ac43036260037966433a65f553 (patch) | |
tree | b0ab935bd127761c09205adfd812aef1b8511f98 /win/CS/frmActivityWindow.cs | |
parent | 4c69e1c1f7afd0be88d70caedd25290422d09775 (diff) |
WinGui: Some refactoring of code that throws exceptions.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4256 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/frmActivityWindow.cs')
-rw-r--r-- | win/CS/frmActivityWindow.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/CS/frmActivityWindow.cs b/win/CS/frmActivityWindow.cs index eb6f30ee1..28be0cc48 100644 --- a/win/CS/frmActivityWindow.cs +++ b/win/CS/frmActivityWindow.cs @@ -14,6 +14,7 @@ namespace Handbrake using System.Windows.Forms;
using HandBrake.ApplicationServices;
+ using HandBrake.ApplicationServices.Exceptions;
using HandBrake.ApplicationServices.Services.Interfaces;
using Handbrake.Functions;
@@ -185,7 +186,7 @@ namespace Handbrake }
catch (Exception exc)
{
- Main.ShowExceptiowWindow("Error during load.", exc.ToString());
+ throw new GeneralApplicationException("Error Loading the Activity Window", string.Empty, exc);
}
}
@@ -290,7 +291,7 @@ namespace Handbrake catch (Exception exc)
{
windowTimer.Dispose();
- Main.ShowExceptiowWindow("GetLog() Error.", exc.ToString());
+ throw new GeneralApplicationException("Failed to Get Log.", string.Empty, exc);
}
return appendText;
|