Forum Multiplayer Handled Error appears in Error Log

Discussion and help relating to the PlayerIO Multiplayer API.

Handled Error appears in Error Log

Postby default0 » April 12th, 2010, 3:05 pm

So hi all,

in my serverside code theres a piece of code which potentially throws an error.
So to avoid this, I use try...catch to handle the error and everything runs fine and as I predicted.
But the error still appears in the error log, which would make debugging harder if a real (unhandled) error occurs (and this is fatal for every server...).

Would be nice to have only unhandled errors in the Error log, or at least a note that the error was handled or unhandled :)

Best regards
User avatar
default0
 
Posts: 115
Joined: February 2nd, 2010, 6:46 pm
Location: Germany

Re: Handled Error appears in Error Log

Postby Benjaminsen » August 3rd, 2010, 10:25 am

Thats how it's implemented now.

/Chris
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Handled Error appears in Error Log

Postby Oliver » August 3rd, 2010, 2:07 pm

If you handle errors yourself using try/catch, they will not show up in the error log. Are you sure it's not some error you're not catching?

- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am


Return to Multiplayer