docs(README.md): fixed exceptions thrown in example