Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Varies widely. Usually you just return the error to let it bubble up to the first caller with enough context to handle it properly. You can also wrap the error message in a string that helps trace the path of the error. If it gets up to main(), you log it and maybe terminate (some errors are fatal, others aren't).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: