mirror of
https://github.com/project-redbud/FunGame-Server.git
synced 2025-04-22 20:19:35 +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.Constant;
|
||||
using Milimoe.FunGame.Server.Model;
|
||||
@ -77,7 +78,7 @@ void StartServer()
|
||||
if (!DataHelper.Connect())
|
||||
{
|
||||
Running = false;
|
||||
throw new Exception("服务器遇到问题需要关闭,请重新启动服务器!");
|
||||
throw new ServerErrorException();
|
||||
}
|
||||
|
||||
// 创建监听
|
||||
|
@ -72,7 +72,6 @@ namespace Milimoe.FunGame.Server.Model
|
||||
break;
|
||||
}
|
||||
return Send(socket, type, msg);
|
||||
throw new Exception();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -97,7 +96,7 @@ namespace Milimoe.FunGame.Server.Model
|
||||
ServerHelper.WriteLine("[" + ServerSocket.GetTypeString(type) + "] " + SocketHelper.MakeClientName(ClientName, User) + " <- " + obj);
|
||||
return true;
|
||||
}
|
||||
throw new Exception("无法向客户端传输消息。");
|
||||
throw new CanNotSendToClientException();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -69,7 +69,7 @@ namespace Milimoe.FunGame.Server.Utility
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("MySQL服务启动失败:无法找到MySQL配置文件。");
|
||||
throw new MySQLConfigException();
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user