Jump to content

change server message when max connection/session has reached


Point

Recommended Posts

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.

maxsession.png

Link to comment
Share on other sites

  • 8 months later...

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;
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...