logoalt Hacker News

je42last Monday at 2:17 AM1 replyview on HN

Nice language! I am wondering how error handling / exceptions works in bolt?

Quickly scanned the programming guide - but wasn't able to find it. Did i miss a section?


Replies

progxlast Monday at 10:12 AM

As far as i can see it is simple, everything can return an Error, so you have to check the return value if it is an error.

https://github.com/Beariish/bolt/blob/main/examples/error_ha...

show 1 reply