EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Simple SSL Client open exception not caught

Posted: 02/08/2014 13:32:32
by Timothy Vogel (Standard support level)
Joined: 01/28/2014
Posts: 8

I added a try/except block around client open to the example SimpleSSL SocketDemo. This is not catching the exception raised when an unreachable address is entered. The debug window prompting for the source to open appears instead. The error message is 10060.

Please help me understand what has to be done to catch exceptions in this call.

   except on e: Exception do begin
        Log('Exception caught', false);

Posted: 02/08/2014 14:03:10
by Eugene Mayevski (Team)

Try/except and the debug window are two unrelated things.

The debugger window is shown when you run the application in IDE under debugger and your debugger is configured to break on exceptions. The debugger breaks *immediately* right where the exception happens.

Try/except block controls handling of exceptions in your application. It prevents showing the exception message by the application (or by the OS) when the unhandled exception happens.

If you are annoyed by the debugger window, you can exclude certain exception types from being tracked by the debugger. This is done in IDE/debugger settings.

Sincerely yours
Eugene Mayevski
Posted: 02/08/2014 19:37:07
by Timothy Vogel (Standard support level)
Joined: 01/28/2014
Posts: 8

Thanks for the help with basic IDE configuration!



Topic viewed 677 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!