Class KnownRecoverableDatabaseSettingsError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- jetbrains.buildServer.maintenance.exceptions.ServerStartupError
-
- jetbrains.buildServer.maintenance.exceptions.KnownRecoverableError
-
- jetbrains.buildServer.maintenance.exceptions.KnownRecoverableDatabaseSettingsError
-
- All Implemented Interfaces:
Serializable,KnownStartupError
- Direct Known Subclasses:
DatabaseIsNotEmptyError,DatabaseVersionMismatchError,DBExceptionAdapter,SecondTeamCityInstanceError,StartupDatabaseAccessingError
public abstract class KnownRecoverableDatabaseSettingsError extends KnownRecoverableError implements KnownStartupError
This exception may be raised at startup when detected an error that can be recovered by changing database settings. When such error occurs, the startup servlet should redirect to the DB sepecifying UI.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKnownRecoverableDatabaseSettingsError(String message)protectedKnownRecoverableDatabaseSettingsError(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanrecover(StartupContext startupContext)Tries to recover.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
recover
public boolean recover(StartupContext startupContext)
Description copied from class:KnownRecoverableErrorTries to recover. Returns true if recovered, false otherwise.- Specified by:
recoverin classKnownRecoverableError
-
-