Throw an exception when parsing the double fails

ParserException added too