Returns an error if any homology has infinite length
The object eulerCharacteristic is a method function.