Throw exception if datamodel scala class does not have a constructor