You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
525 B
23 lines
525 B
8 months ago
|
#if !BESTHTTP_DISABLE_SOCKETIO
|
||
|
|
||
|
namespace BestHTTP.SocketIO
|
||
|
{
|
||
|
public sealed class Error
|
||
|
{
|
||
|
public SocketIOErrors Code { get; private set; }
|
||
|
public string Message { get; private set; }
|
||
|
|
||
|
public Error(SocketIOErrors code, string msg)
|
||
|
{
|
||
|
this.Code = code;
|
||
|
this.Message = msg;
|
||
|
}
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return string.Format("Code: {0} Message: \"{1}\"", this.Code.ToString(), this.Message);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|