Files
DHTSpider/Tancoder.Torrent/MessageException.cs
T
2016-08-08 02:37:18 +08:00

23 lines
461 B
C#

#if !DISABLE_DHT
using System;
using System.Collections.Generic;
using System.Text;
namespace Tancoder.Torrent.Dht
{
public class MessageException : Exception
{
private ErrorCode errorCode;
public ErrorCode ErrorCode
{
get { return errorCode; }
}
public MessageException(ErrorCode errorCode, string message) : base(message)
{
this.errorCode = errorCode;
}
}
}
#endif