Add errors handling
Add test spec for errors handling
Add examples/throw.js