Throw exception if fromData param cannot be parsed