Uploaded image for project: 'Commons Pool'
  1. Commons Pool
  2. POOL-269

Use generic exceptions instead of java.lang.Exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2
    • 3.0
    • None

    Description

      Too many methods say throws Exception in their signature. This is neither helpful nor good API design. You never know what the exception is and where it came from.

      An exception translation pattern has to be applied to make code usable, e.g., like the Spring project does or Maven with BuildException.

      Unfortunately, this ugly practive has prevailed in several Apache projects like Lucene.

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            michael-o Michael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: