You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Robert Burrell Donkin (JIRA)" <ji...@apache.org> on 2009/06/15 11:03:07 UTC

[jira] Updated: (MAHOUT-134) [PATCH] Cluster decode error handling

     [ 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.