diff options
author | Scott <[email protected]> | 2015-09-26 21:09:05 +0100 |
---|---|---|
committer | Scott <[email protected]> | 2015-09-26 21:30:32 +0100 |
commit | c4008d7a492fa08449de6e19414a1acf101e53f5 (patch) | |
tree | 0ee2c53bd8961590f8714b79a5a49e671d4af767 /win/CS/HandBrakeWPF/Exceptions/GeneralApplicationException.cs | |
parent | 1320d77d36f096c7aa5b1697d3aaf9aa35d5e199 (diff) |
App Services Cleanup Contd
Moving Exceptions and more utilities to the GUI project.
Diffstat (limited to 'win/CS/HandBrakeWPF/Exceptions/GeneralApplicationException.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Exceptions/GeneralApplicationException.cs | 53 |
1 files changed, 53 insertions, 0 deletions
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 @@ +// -------------------------------------------------------------------------------------------------------------------- +// <copyright file="GeneralApplicationException.cs" company="HandBrake Project (http://handbrake.fr)"> +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// </copyright> +// <summary> +// The Encode Failure Exception +// </summary> +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrakeWPF.Exceptions +{ + using System; + + /// <summary> + /// The Encode Failure Exception + /// </summary> + public class GeneralApplicationException : Exception + { + /// <summary> + /// Initializes a new instance of the <see cref="GeneralApplicationException"/> class. + /// </summary> + /// <param name="error"> + /// The error. + /// </param> + /// <param name="solution"> + /// The solution. + /// </param> + /// <param name="innerException"> + /// The inner Exception. + /// </param> + public GeneralApplicationException(string error, string solution, Exception innerException) + { + this.Error = error; + this.Solution = solution; + this.ActualException = innerException; + } + + /// <summary> + /// Gets or sets FailureReason. + /// </summary> + public string Error { get; set; } + + /// <summary> + /// Gets or sets Solution. + /// </summary> + public string Solution { get; set; } + + /// <summary> + /// Gets or sets InnerException. + /// </summary> + public Exception ActualException { get; set; } + } +} |