Throw exception when invalid join type is passed