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

Oh, right, you convert it to RuntimeException (ostensibly in multiple places where you don't want to handle the exception) and catch that one as a general exception. It makes sense now and sounds like a good solution, thank you.


It is a horrible solution, but it does work.

IMHO, go was right to get rid of exceptions (stack traces are useful) and just return two values.




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

Search: