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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.2
    • 2.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: