DmOpenDatabase won't ever throw an error. If it returns 0, you can use DmGetLastErr() to figure out what went wrong. You can then throw/catch that error if you like.

-Gary

Bharathi Kumaraswamy wrote:
Thanks for your reply. I am using C language and I need to get all the 
exceptions.

This is my code:

ErrTry
 {
 CityIDdb = DmOpenDatabase(0,dbID,dmModeReadOnly);
  if(CityIDdb==0)
    {
       ErrThrow(dmErrCantOpen);
    }
 }
 ErrCatch(error)
 {
   return;
 }
 ErrEndCatch

If any exception occurs during DmOpendatabase function, I have to catch it. But 
how can i do that? I dont want to throw particular exception. Please help me in 
this issue.

Thanks in advance
Bharathi

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to