Home All Groups Group Topic Archive Search About

Catching Runtime exceptions.

Author
3 Aug 2006 3:59 PM
IdleBrain
Hello All:
I have a project deployed to a client.

The client reports me of a runtime exception occuring some times:
Arithmetic Overflow
It does not occur on my machine where I have the source code written.

I handle this exception by logging the Err.source, Err.Description and
Err.Erl into a text file.
But for some reason the error line is being logged as line zero which
doesnot help me to debug it.

How exactly do I know where and why that exception occurs?

Thanks in advance.

Author
3 Aug 2006 5:03 PM
Zloth
I think you'll find it easier to use the new Try/Catch exception method then
check the exception object.  That has a StackTrace string that will give you
*very* detailed infromation on where the error happened.  Or you can just use
the .ToString method - I think that also displays the stack trace.