Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-4289

improve error handling in KualiAction.performLookup(..)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.0.3
    • Component/s: Development
    • Labels:
      None
    • Rice Module:
      Rice Core

      Description

      I would have been able to diagnose a problem easier if Rice had better error handling in one particular place. I would suggest the following changes.

      Replace
      LOG.debug( "lookupParams: " + lookupParams );
      with
      LOG.debug( "lookupParams: " + Arrays.toString(lookupParams) );

      and
      String[] keyValue = lookupParams[i].split(KNSConstants.FIELD_CONVERSION_PAIR_SEPARATOR);
      with
      String[] keyValue = lookupParams[i].split(KNSConstants.FIELD_CONVERSION_PAIR_SEPARATOR);
      if (keyValue.length != 2) throw new RuntimeException("malformed field conversion pair: " + Arrays.toString(keyValue));

        Attachments

          Activity

          Hide
          gtaylor Garey Taylor added a comment -

          Added changes.

          Show
          gtaylor Garey Taylor added a comment - Added changes.

            People

            • Assignee:
              Unassigned
              Reporter:
              kgeis Ken Geis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: