If the error is not normally expected, I would tend toward exceptions. If the natural idiom is to use an if-statement, null might be OK. If null-return is used and there isn't an if, then you have a bug in k-means at least.
I/O is an area that is kind of conflicted on this sort of issue. On Sun, Jun 14, 2009 at 1:47 AM, Robert Burrell Donkin < robertburrelldon...@gmail.com> wrote: > i'd like > to contribute a patch but i'm unsure about the conventional error > handling strategy used in Mahout... >