Update error example file with next() usage
Document error handling functionality