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

Will throw this in here as it's been useful for errors if operating with try/catch



try/catch has no problem, but the premise is that you know there will be errors been thrown. Say a function `divide`, you can barely tell that whether it will throw errors or not without looking into the source code.




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

Search: