Recent

Author Topic: How to setup Exception-Handling?  (Read 2532 times)

Zvoni

  • Hero Member
  • *****
  • Posts: 2327
How to setup Exception-Handling?
« on: June 07, 2023, 03:22:34 pm »
Hi Folks,
for the life of me i can't remember it anymore:

Scenario:
I'm currently writing some code which connects to an ODBC-Database.
In the Uses-Clause: Classes, SysUtils, ODBCConn

How do i setup the Exception-handling in the Project options for my code to handle the Exception, and not the IDE?

Add EODBCException and activate it?
Unselect "Notify on Exceptions"?
What with debuggers?

mode is ObjFPC

*stumped*
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

ASerge

  • Hero Member
  • *****
  • Posts: 2241
Re: How to setup Exception-Handling?
« Reply #1 on: June 07, 2023, 08:48:55 pm »
How do i setup the Exception-handling in the Project options for my code to handle the Exception, and not the IDE?
Unselect "Notify on Exceptions".

 

TinyPortal © 2005-2018