swapped docs and Exception to type InvalidParamException
Merge pull request #1322 from pmoust/master

swapped docs and Exception to type InvalidParamException