From 407aa2324adb84d97a61ddefde22178dff5c6063 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 14 May 2011 14:46:16 +0000 Subject: WinGui: - Removed the Question Alert box when adding an item to the queue where the destination folder does not exist. The folder is automatically created before encode anyway, so no point in asking the user pre-Encode.cs - Better error handling in the encode service. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3979 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../Exceptions/GeneralApplicationException.cs | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 win/CS/HandBrake.ApplicationServices/Exceptions/GeneralApplicationException.cs (limited to 'win/CS/HandBrake.ApplicationServices/Exceptions') diff --git a/win/CS/HandBrake.ApplicationServices/Exceptions/GeneralApplicationException.cs b/win/CS/HandBrake.ApplicationServices/Exceptions/GeneralApplicationException.cs new file mode 100644 index 000000000..1ee6608ba --- /dev/null +++ b/win/CS/HandBrake.ApplicationServices/Exceptions/GeneralApplicationException.cs @@ -0,0 +1,49 @@ +/* GeneralApplicationException.cs $ + This file is part of the HandBrake source code. + Homepage: . + It may be used under the terms of the GNU General Public License. */ + +namespace HandBrake.ApplicationServices.Exceptions +{ + using System; + + /// + /// The Encode Failure Exception + /// + public class GeneralApplicationException : Exception + { + /// + /// Initializes a new instance of the class. + /// + /// + /// The error. + /// + /// + /// The solution. + /// + /// + /// The inner Exception. + /// + public GeneralApplicationException(string error, string solution, Exception innerException) + { + this.Error = error; + this.Solution = solution; + this.ActualException = innerException; + } + + /// + /// Gets or sets FailureReason. + /// + public string Error { get; set; } + + /// + /// Gets or sets Solution. + /// + public string Solution { get; set; } + + /// + /// Gets or sets InnerException. + /// + public Exception ActualException { get; set; } + } +} -- cgit v1.2.3