Added a @throws to the docs