Class InheritanceBuild.HadToConvertErrorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- hudson.plugins.project_inheritance.projects.InheritanceBuild.HadToConvertErrorException
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- InheritanceBuild
public static class InheritanceBuild.HadToConvertErrorException extends Exception
This exception is raised, when anError
had to be converted into anException
to work around a Jenkins file handle leak inRun
.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 Summary
Constructors Constructor Description HadToConvertErrorException(Throwable error)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HadToConvertErrorException
public HadToConvertErrorException(Throwable error)
-
-