I have fib+ comps installed on my machine and trying to catch Interbase exception on connecting but one exception I cannot catch
try {
DM->dBase->Connected=false;
DM->dBase->DBName=DBPATH;
DM->dBase->Connected=true;
} catch (Exception &e) {
ShowMessage("Exception "+ (AnsiString(e.Message)));
}
if i change the DBPATH to a non-existent gdb file it throws an exception like
Unsuccessful execution caused by a system error that precludes successful exection of subsequent statements. I/O error for file .Error while trying to open file
Is it possible to catch this exception???? I debugged my code but cursor didn't come till try catch exception block and before that my aforementioned exception comes on!!!
If yes how can i catch this kind of exception????