Hacker News new | past | comments | ask | show | jobs | submit login

Well it depends, if you want a feature that is _called_ 'exception', than no, there is none.

If you want a feature that allows you to signal and catch errors, than:

* you can return Error as the second parameter from a function,

* you can panic and later defer a recover call (more info: http://blog.golang.org/2010/08/defer-panic-and-recover.html )




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: