// --------------------------------------------------------------------------------------------------------------------
//
// 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;
}
///
/// Initializes a new instance of the class with no wrapped exception.
///
///
/// The error.
///
///
/// The solution.
///
public GeneralApplicationException(string error, string solution)
: this(error, solution, null)
{
}
///
/// 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; }
}
}