Added error throwing and catching example.