Point Posted March 6, 2021 Share Posted March 6, 2021 Hello, How to customize server message when max connection/session has reached ? default message like this : Can not create more sessions: [Max= 3, Current= 3] and i want to change with message like this : "Currently this website is full of visitors, please wait a little longer." hope that message only display when connection has been reached, but could display native exceptions message when other exceptions raise. Thank you in advance. Quote Link to comment Share on other sites More sharing options...
Point Posted November 8, 2021 Author Share Posted November 8, 2021 Does uniGUI have Error Code for every Exception or Does UniGUI have Constanta Message unit file like DBConst.pas so we could customize Exception Message procedure TUniServerModule.UniGUIServerModuleException( Sender: TUniGUIMainModule; AException: Exception; var Handled: Boolean); begin if AException.ErrorCode = 10001 then AException.Message = 'bla bla bla...'; end; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.