summaryrefslogtreecommitdiffstats
path: root/win/CS/frmPreview.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-09-26 20:57:50 +0000
committersr55 <[email protected]>2011-09-26 20:57:50 +0000
commit93c56509e64cf7ac43036260037966433a65f553 (patch)
treeb0ab935bd127761c09205adfd812aef1b8511f98 /win/CS/frmPreview.cs
parent4c69e1c1f7afd0be88d70caedd25290422d09775 (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/frmPreview.cs')
-rw-r--r--win/CS/frmPreview.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/win/CS/frmPreview.cs b/win/CS/frmPreview.cs
index bcafc23a1..a9cf946ab 100644
--- a/win/CS/frmPreview.cs
+++ b/win/CS/frmPreview.cs
@@ -13,7 +13,9 @@ namespace Handbrake
using Functions;
using HandBrake.ApplicationServices;
+ using HandBrake.ApplicationServices.Exceptions;
using HandBrake.ApplicationServices.Model;
+ using HandBrake.ApplicationServices.Model.General;
using HandBrake.ApplicationServices.Services;
using HandBrake.ApplicationServices.Services.Interfaces;
@@ -138,7 +140,7 @@ namespace Handbrake
}
catch (Exception exc)
{
- Main.ShowExceptiowWindow("An Unexpected error has occured", exc.ToString());
+ throw new GeneralApplicationException("An Unexpected error has occured", " Your encode may not have completed sucessfully.", exc);
}
}