ErrCatch will catch all errors for you (which is what you want I believe). If you only want to catch a particular error code, you will need to use ErrCatch, check for your error code, and use ErrThrow to rethrow everything else.

Note that you still have to manually check all the return codes from PalmOS functions, none of them use ErrThrow to my knowledge. Also note that if you're using C++, using ErrThrow won't properly call destructors for stack objects. It's really only suitable for straight C code. I stopped using ErrTry/ErrCatch when I discovered this.

Cheers,
Gary

Bharathi Kumaraswamy wrote:
Hi,

I am using PODS to develop the application. I need to use Errtry and Errcatch in my code. When I use these 2 statements, I have to give a particular exception in Errthrow statement.But i have to catch all the exceptions. I need to know whether it is a must to use Errthrow with Errtry and Errcatch. Or, How can I use Errtry to catch all the exceptions?.
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