Added examples of generators an exceptions

I added some examples of different cases about dealing between
generators and exceptions
update info in package.json