Subject | Re: [IBO] catching excpetion in TIB_Connection.Connect |
---|---|
Author | Ryan Nilsson-Harding |
Post date | 2002-09-25T06:03:05Z |
Excellent Helen,
thank you.
I now test for the file_not_found error in myConn.OnError, and then
execute my createDB proc, and suppress the exception.
I'm still quite baffled as to why my original try.except block will
only catch the Connect exception if LoginPrompt is True, but I will
worry about that later as I must press on!
Thanks again.
-Ryan
thank you.
I now test for the file_not_found error in myConn.OnError, and then
execute my createDB proc, and suppress the exception.
I'm still quite baffled as to why my original try.except block will
only catch the Connect exception if LoginPrompt is True, but I will
worry about that later as I must press on!
Thanks again.
-Ryan
> Is it possible you have LoginAttempts set to the default of 3? Ifso, the
> default "re-try login" handling is going to reiterate three timesbefore it
> passes control over to the OnLoginFailure event. Set yourLoginAttempts
> back to 1 and read the error status array in the OnErrorevent...though I
> would expect OnError to pick up the appropriate EIB_ISCError eachtime
> login fails...exceptions
>
> Does this help to answer your questions about when and where the
> occur?