Mahout
  1. Mahout
  2. MAHOUT-22

Several matrix exceptions are checked exceptions, but should be unchecked

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1
    • Component/s: None
    • Labels:
      None

      Description

      IndexException and CardinalityException should be unchecked exceptions by analogy to ArrayIndexOutOfBoundsException

      Having them be checked causes lots of try/catches in code that doesn't have a chance of fixing the problem. It should be understood that these can happen in any matrix manipulation code just like IllegalArgumentException, ArithmeticException or ArrayIndexOutOfBoundsException can happen in any numerical codes.

        Activity

        Hide
        Karl Wettin added a comment -

        Committed revision 644784.

        Thanks Ted!

        Show
        Karl Wettin added a comment - Committed revision 644784. Thanks Ted!
        Hide
        Karl Wettin added a comment -

        Committed revision 644784.

        Thanks Ted!

        Show
        Karl Wettin added a comment - Committed revision 644784. Thanks Ted!
        Hide
        Karl Wettin added a comment -

        I'll commit this tomorrow given there are no more comments.

        Show
        Karl Wettin added a comment - I'll commit this tomorrow given there are no more comments.
        Hide
        Ted Dunning added a comment -

        Here are the trivial changes.

        Show
        Ted Dunning added a comment - Here are the trivial changes.

          People

          • Assignee:
            Karl Wettin
            Reporter:
            Ted Dunning
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development