mirror of
https://github.com/zhangkong828/DHTSpider.git
synced 2026-10-17 04:30:44 +08:00
23 lines
461 B
C#
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 |