Howdy
I have been reading the help and examining the sources and I'm trying to
work out how to make my application throw an error, write to the error.log
and then display the error form. (Just like when Xailer/Xharbour does
I have managed to throw an error and get the error form to appear, the
problem is the log isn't written, so I end up displaying whatever error
happened in my code, not the error I threw.
I have read the sources for errorsys.prg. They look like I can throw an
error, then pass the error object to the errorsys.
Can someone provide some guidance? I'm a bit lost
Nick
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Logging Application Errors
-
- Mensajes: 53
- Registrado: Vie May 26, 2006 3:33 am
Logging Application Errors
Nick,
> I have read the sources for errorsys.prg. They look like I can throw an
> error, then pass the error object to the errorsys.
>
> Can someone provide some guidance? I'm a bit lost
In Errorsys.prg there is a function LogError() that does all the job of
logging. Also, you should do the error logging before evaluating the
errorblock (see line 95 of errorsys.prg)
Regards,
José Lalín
> I have read the sources for errorsys.prg. They look like I can throw an
> error, then pass the error object to the errorsys.
>
> Can someone provide some guidance? I'm a bit lost
In Errorsys.prg there is a function LogError() that does all the job of
logging. Also, you should do the error logging before evaluating the
errorblock (see line 95 of errorsys.prg)
Regards,
José Lalín