Class InheritanceBuild.HadToConvertErrorException

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    InheritanceBuild

    public static class InheritanceBuild.HadToConvertErrorException
    extends Exception
    This exception is raised, when an Error had to be converted into an Exception to work around a Jenkins file handle leak in Run.execute().

    When Build.BuildExecution.cleanUp(BuildListener) raises an error instead of an exception, the build logger (its underlying file stream) is closed in Run.execute(), but its overlaying listener is not closed.

    When the GC does not finalize those objects because it has enough memory, an open file handle might be leaked.

    This needs to be fixed upstream in Jenkins, but until then it must be worked-around by converting the Error into an Exception.

    One source of such an Error can be WorkspaceList.release().

    See Also:
    Serialized Form
    • Constructor Detail

      • HadToConvertErrorException

        public HadToConvertErrorException​(Throwable error)