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
public abstract class BootFailure extends ErrorObject
Indicates a fatal boot problem, amongErrorObject
- Author:
- Kohsuke Kawaguchi
- See Also:
WebAppMain.recordBootAttempt(File)
, Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BootFailure()
protected
BootFailure(Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static File
getBootFailureFile(File home)
This file captures failed boot attempts.protected List<Date>
loadAttempts(File home)
Parses the boot attempt file carefully so as not to cause the entire hook script to fail to execute.void
publish(javax.servlet.ServletContext context, File home)
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 Detail
-
BootFailure
protected BootFailure()
-
BootFailure
protected BootFailure(Throwable cause)
-
-
Method Detail
-
publish
public void publish(javax.servlet.ServletContext context, @CheckForNull File home)
Exposes this failure to UI and invoke the hook.- Parameters:
home
- JENKINS_HOME if it's already known.
-
loadAttempts
protected List<Date> loadAttempts(File home)
Parses the boot attempt file carefully so as not to cause the entire hook script to fail to execute.
-
-