blob: e547325174cdc6c3c7e2e0f5193f4d74517a6779 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
// --------------------------------------------------------------------------------------------------------------------
// <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>
/// Initializes a new instance of the <see cref="GeneralApplicationException"/> class with no wrapped exception.
/// </summary>
/// <param name="error">
/// The error.
/// </param>
/// <param name="solution">
/// The solution.
/// </param>
public GeneralApplicationException(string error, string solution)
: this(error, solution, null)
{
}
/// <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; }
}
}
|