tytd/Tesses.YouTubeDownloader/TYTDException.cs

44 lines
1.0 KiB
C#

using System;
using System.Runtime.Serialization;
namespace Tesses.YouTubeDownloader
{
[Serializable]
internal class TYTDException : Exception
{
public TYTDException()
{
this.full="";
Type="";
}
public TYTDException(string message) : base(message)
{
this.full="";
Type="";
}
public TYTDException(string message, Exception innerException) : base(message, innerException)
{
this.full="";
Type="";
}
public TYTDException(string message,string full,string type) : base(message)
{
this.full=full;
Type=type;
}
protected TYTDException(SerializationInfo info, StreamingContext context) : base(info, context)
{
this.full="";
Type="";
}
string full;
public string Type {get;private set;}
public override string ToString()
{
return full;
}
}
}