fix the text where exception should be thrown
move documentation