From c4008d7a492fa08449de6e19414a1acf101e53f5 Mon Sep 17 00:00:00 2001 From: Scott Date: Sat, 26 Sep 2015 21:09:05 +0100 Subject: App Services Cleanup Contd Moving Exceptions and more utilities to the GUI project. --- .../Exceptions/GeneralApplicationException.cs | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 win/CS/HandBrakeWPF/Exceptions/GeneralApplicationException.cs (limited to 'win/CS/HandBrakeWPF/Exceptions') diff --git a/win/CS/HandBrakeWPF/Exceptions/GeneralApplicationException.cs b/win/CS/HandBrakeWPF/Exceptions/GeneralApplicationException.cs new file mode 100644 index 000000000..10c5192af --- /dev/null +++ b/win/CS/HandBrakeWPF/Exceptions/GeneralApplicationException.cs @@ -0,0 +1,53 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// The Encode Failure Exception +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrakeWPF.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