diff options
author | sr55 <[email protected]> | 2012-10-07 20:42:45 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-10-07 20:42:45 +0000 |
commit | b8ee41991cb6e93d2cf9222fc13b0fd4277fdf70 (patch) | |
tree | ee616d4f4c6333a40f188306a21f26646aaa781d /win/CS/HandBrake.ApplicationServices/Services/Base | |
parent | 5b54f61fc2020e2bb32db47ee4cf10110b966bd3 (diff) |
WinGui: Fix a couple of swallowed exceptions.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5009 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/Base')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs b/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs index 6a9717ef8..8cca6e7e5 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs @@ -72,7 +72,6 @@ namespace HandBrake.ApplicationServices.Services.Base GeneralUtilities.CreateCliLogHeader(
userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakeVersion),
userSettingService.GetUserSetting<int>(ASUserSettingConstants.HandBrakeBuild));
-
}
#region Events
@@ -265,7 +264,7 @@ namespace HandBrake.ApplicationServices.Services.Base try
{
- string query = QueryGeneratorUtility.GenerateQuery(new EncodeTask(encodeQueueTask.Task),
+ string query = QueryGeneratorUtility.GenerateQuery(new EncodeTask(encodeQueueTask.Task),
userSettingService.GetUserSetting<int>(ASUserSettingConstants.PreviewScanCount),
userSettingService.GetUserSetting<int>(ASUserSettingConstants.Verbosity),
userSettingService.GetUserSetting<bool>(ASUserSettingConstants.DisableLibDvdNav));
@@ -330,13 +329,17 @@ namespace HandBrake.ApplicationServices.Services.Base if (this.fileWriter.BaseStream.Length > 100000000)
{
this.Stop(
- new Exception(
- "The encode has been stopped. The log file has grown to over 100MB which indicates a serious problem has occured with the encode." +
- "Please check the encode log for an indication of what the problem is."));
+ new GeneralApplicationException(
+ "The encode has been stopped. The log file has grown to over 100MB which indicates a serious problem has occured with the encode.",
+ "Please check the encode log for an indication of what the problem is.", null));
}
}
}
}
+ catch (GeneralApplicationException)
+ {
+ throw;
+ }
catch (Exception exc)
{
// Do Nothing.
|