From 93c56509e64cf7ac43036260037966433a65f553 Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 26 Sep 2011 20:57:50 +0000 Subject: WinGui: Some refactoring of code that throws exceptions. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4256 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/frmPreview.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'win/CS/frmPreview.cs') 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); } } -- cgit v1.2.3