Commons IO
  1. Commons IO
  2. IO-348

Missing information in IllegalArgumentException thrown by org.apache.commons.io.FileUtils#validateListFilesParameters

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: Utilities
    • Labels:
      None
    • Environment:

      N/A

      Description

      When you pass an invalid directory to org.apache.commons.io.FileUtils#validateListFilesParameters, the IllegalArgumentException thrown is missing information for easily debug the problem. My suggestion is the value of the path to the message of the exception.

      1. IO-348.patch
        0.8 kB
        Pier-Luc Caron St-Pierre

        Activity

        Pier-Luc Caron St-Pierre created issue -
        Pier-Luc Caron St-Pierre made changes -
        Field Original Value New Value
        Attachment IO-348.patch [ 12548136 ]
        Gary Gregory made changes -
        Summary Missing information in org.apache.commons.io.FileUtils#validateListFilesParameters Missing information in IllegalArgumentException thrown by org.apache.commons.io.FileUtils#validateListFilesParameters
        Gary Gregory made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.5 [ 12322486 ]
        Resolution Fixed [ 1 ]
        Gary Gregory made changes -
        Affects Version/s 2.4 [ 12320769 ]
        Affects Version/s 2.5 [ 12322486 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Pier-Luc Caron St-Pierre
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development