Package hudson.util
Class BootFailure
java.lang.Object
java.lang.Throwable
java.lang.Exception
hudson.util.ErrorObject
hudson.util.BootFailure
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AWTProblem
,HudsonFailedToLoad
,IncompatibleAntVersionDetected
,IncompatibleServletVersionDetected
,IncompatibleVMDetected
,InsufficientPermissionDetected
,InvalidBuildsDir
,JenkinsReloadFailed
,NoHomeDir
,NoTempDir
Indicates a fatal boot problem, among
ErrorObject
- Author:
- Kohsuke Kawaguchi
- See Also:
-
WebAppMain.recordBootAttempt(File)
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
getBootFailureFile
(File home) This file captures failed boot attempts.loadAttempts
(File home) Parses the boot attempt file carefully so as not to cause the entire hook script to fail to execute.void
Exposes this failure to UI and invoke the hook.Methods inherited from class hudson.util.ErrorObject
doDynamic, getStackTraceString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BootFailure
protected BootFailure() -
BootFailure
-
-
Method Details
-
publish
Exposes this failure to UI and invoke the hook.- Parameters:
home
- JENKINS_HOME if it's already known.
-
loadAttempts
Parses the boot attempt file carefully so as not to cause the entire hook script to fail to execute. -
getBootFailureFile
This file captures failed boot attempts. Every time we try to boot, we add the timestamp to this file, then when we boot, the file gets deleted.
-