Uploaded image for project: 'Form2DB App'
  1. Form2DB App
  2. FORMDB-4

Improve error handling in Form2dbProcessor class

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • None

    Description

      I think the error handling should be improved. At least for this code excerpt from the latest Form2dbProcessor class:

      catch (Exception e) {
      
      }
      

      Normally you should not catch the generic Exception class but more specific ones. And at the very least the exception should be logged here because now when something goes wrong I have no idea what or why.

      log.error("Some informative message here", e);
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              marvink2 Marvin Kerkhoff
              edgar Edgar Vonk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD