Error Handling

The Server/Views mapping redirect all Server messages to the static member function HandleMessage via the member function IlsLogfile::setRedirect. Those messages can be issued by the server through the virtual member function recvMessage or from the Server/Views mapping in case of error or warning.

The function HandleMessage opens a dialog box if the message level is WARNING or ERROR. You can control this behavior by means of the API of the IlsSwComponent class.

All messages are also redirected to the Connection Panel log window if a Connection Panel is installed with a log window in your application. You can redirect the messages to one of your functions using the API of the IlsLogFile class.

If an error or warning occurs at Views level, it is handled by the Views library.