updated example in README to demonstrate when exceptions are thrown