throw an exception when learningNeuronsList is empty