Updated docs with @throws