Fixed @throws for connect javadoc