Added a new example

Added a new example that demonstrates how to catch exceptions thrown from put()