mirror of
https://github.com/project-redbud/FunGame-Server.git
synced 2025-04-23 12:39:36 +08:00
更新异常
This commit is contained in:
parent
60347cf294
commit
c6ad7016d3
@ -1,4 +1,5 @@
|
|||||||
using Milimoe.FunGame.Core.Api.Utility;
|
using Milimoe.FunGame;
|
||||||
|
using Milimoe.FunGame.Core.Api.Utility;
|
||||||
using Milimoe.FunGame.Core.Library.Common.Network;
|
using Milimoe.FunGame.Core.Library.Common.Network;
|
||||||
using Milimoe.FunGame.Core.Library.Constant;
|
using Milimoe.FunGame.Core.Library.Constant;
|
||||||
using Milimoe.FunGame.Server.Model;
|
using Milimoe.FunGame.Server.Model;
|
||||||
@ -77,7 +78,7 @@ void StartServer()
|
|||||||
if (!DataHelper.Connect())
|
if (!DataHelper.Connect())
|
||||||
{
|
{
|
||||||
Running = false;
|
Running = false;
|
||||||
throw new Exception("服务器遇到问题需要关闭,请重新启动服务器!");
|
throw new ServerErrorException();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 创建监听
|
// 创建监听
|
||||||
|
@ -72,7 +72,6 @@ namespace Milimoe.FunGame.Server.Model
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return Send(socket, type, msg);
|
return Send(socket, type, msg);
|
||||||
throw new Exception();
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
@ -97,7 +96,7 @@ namespace Milimoe.FunGame.Server.Model
|
|||||||
ServerHelper.WriteLine("[" + ServerSocket.GetTypeString(type) + "] " + SocketHelper.MakeClientName(ClientName, User) + " <- " + obj);
|
ServerHelper.WriteLine("[" + ServerSocket.GetTypeString(type) + "] " + SocketHelper.MakeClientName(ClientName, User) + " <- " + obj);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
throw new Exception("无法向客户端传输消息。");
|
throw new CanNotSendToClientException();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -69,7 +69,7 @@ namespace Milimoe.FunGame.Server.Utility
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw new Exception("MySQL服务启动失败:无法找到MySQL配置文件。");
|
throw new MySQLConfigException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user