Minor typo fix in documentation

This is really minor typo that I noticed. It says "throws and error" instead of "throws an error". This commit fixes that.