Class FileUtils.ScanResult<T extends IArtifact>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<VilException> errors  
      private java.util.List<T> result  
    • Constructor Summary

      Constructors 
      Constructor Description
      ScanResult​(java.util.List<T> result)
      Creates a new scan result with a list to put the created artifacts into.
      ScanResult​(java.util.List<T> result, java.util.List<VilException> errors)
      Creates a new scan result with a list to put the created artifacts into and a list for errors.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkForException()
      Default handling of collected errors.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • result

        private java.util.List<T extends IArtifact> result
    • Constructor Detail

      • ScanResult

        public ScanResult​(java.util.List<T> result)
        Creates a new scan result with a list to put the created artifacts into.
        Parameters:
        result - the list to store the created artifacts (may be null)
      • ScanResult

        public ScanResult​(java.util.List<T> result,
                          java.util.List<VilException> errors)
        Creates a new scan result with a list to put the created artifacts into and a list for errors.
        Parameters:
        result - the list to store the created artifacts (may be null)
        errors - the list to store the caused exceptions into (may be null)
    • Method Detail

      • checkForException

        public void checkForException()
                               throws VilException
        Default handling of collected errors. If errors occurred, put them into a combined ArtifactException.
        Throws:
        VilException - thrown if errors were collected