[ 
https://issues.apache.org/jira/browse/MAHOUT-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Burrell Donkin updated MAHOUT-134:
-----------------------------------------

    Attachment: mahout-cluster-format-error.patch

This patch insists that the implementation returns not null. When the format is 
unknown an IllegalArgumentException will be thrown. If the caller can recover 
from a badly formatted cluster this exception can be caught. Otherwise, it 
provides reasonable diagnostic information.

> [PATCH] Cluster decode error handling
> -------------------------------------
>
>                 Key: MAHOUT-134
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-134
>             Project: Mahout
>          Issue Type: Improvement
>    Affects Versions: 0.2
>            Reporter: Robert Burrell Donkin
>         Attachments: mahout-cluster-format-error.patch
>
>
> ATM the javadocs are unclear as to whether null is an acceptable return value 
> and callers do not null check the return value. However, the implementation 
> may return null in or throw other runtime exceptions when the format is not 
> correct. This makes it hard to diagnose when there's a problem with the 
> format.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to