Fixed error. (Wrong use of throw.)