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

borrowObject should return the exception thrown by validateObject when throwing an Exception to let Exceptions be handled at a higher level

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      All

      Description

      public Object borrowObject() throws Exception {
      ...
      try {
      ...
      if(newlyCreated)

      { throw new NoSuchElementException("Could not create a validated object, cause: " + e.getMessage()); }

      SHOULD BE CHANGED TO :

      if(newlyCreated)

      { throw new Exception("Could not create a validated object", e); }

        Attachments

          Activity

            People

            • Assignee:
              markt Mark Thomas
              Reporter:
              monsieur_edi Monsieur EDI
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: