Hey
Cryptic subject, eh...
In my webservice im doing code like this:
try
{
//Some code that might generate an exception
}
catch
{
//Im logging all errors to a file here
}
On my PDA im doing code like this:
try
{
//Calling my webservice here
}
catch
{
if the webservice fails the user gets a message and i can see the error in
the log file
}
Now, my question is. What happens if writing to my logfile fails?
What i would like to happen is that i can tell the user to contact me, so
that i can take action on the issues. Since the logfile is my only way to
see that errors has been generated its very important that i can see the
errors.
So i have tried to make a try catch block inside the catch in the
webservice. That should raise an exception if writing to the log file fails.
But even though it probably does that, all i can see on my PDA is the same
error as when i just wrote to the logfile without using a try catch for
that.
Am i misunderstanding this??
--
Jimmy