Package com._1c.g5.v8.dt.core.lifecycle
Class ProjectContextRestartRequestedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com._1c.g5.v8.dt.core.lifecycle.ProjectContextRestartRequestedException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RuntimeVersionUnsupportedException
public class ProjectContextRestartRequestedException extends RuntimeException
Exception that indicates that the given project context should be restarted, usually after some interactive incident resolution from the user side.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProjectContextRestartRequestedException.RestartAllowance
Restart allowance that indicates the possibility of the restart
-
Constructor Summary
Constructors Constructor Description ProjectContextRestartRequestedException(IDtProject project)
Creates an instance of the exception.ProjectContextRestartRequestedException(IDtProject project, String message)
Creates an instance of the exception.ProjectContextRestartRequestedException(IDtProject project, String message, Throwable cause)
Creates an instance of the exception.ProjectContextRestartRequestedException(IDtProject project, Throwable cause)
Creates an instance of the exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDtProject
getProject()
Gets the target project for the exception.void
setIncidentController(IIncidentResolutionController<ProjectContextRestartRequestedException.RestartAllowance> incidentController)
ProjectContextRestartRequestedException.RestartAllowance
waitForResolution()
Wait for the resolution of the incident that requres the restart-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ProjectContextRestartRequestedException
public ProjectContextRestartRequestedException(IDtProject project)
Creates an instance of the exception.- Parameters:
project
- The target project for the exception. Cannot benull
.
-
ProjectContextRestartRequestedException
public ProjectContextRestartRequestedException(IDtProject project, String message)
Creates an instance of the exception.- Parameters:
project
- The target project for the exception. Cannot benull
.message
- the detail message, can benull
.
-
ProjectContextRestartRequestedException
public ProjectContextRestartRequestedException(IDtProject project, String message, Throwable cause)
Creates an instance of the exception.- Parameters:
project
- The target project for the exception. Cannot benull
.message
- the detail message, can benull
.cause
- the cause, can benull
.
-
ProjectContextRestartRequestedException
public ProjectContextRestartRequestedException(IDtProject project, Throwable cause)
Creates an instance of the exception.- Parameters:
project
- The target project for the exception. Cannot benull
.cause
- the cause, can benull
.
-
-
Method Detail
-
getProject
public IDtProject getProject()
Gets the target project for the exception.- Returns:
- The project that is associated with this exception. Cannot be
null
.
-
setIncidentController
public void setIncidentController(IIncidentResolutionController<ProjectContextRestartRequestedException.RestartAllowance> incidentController)
- Parameters:
incidentController
- the incidentController to set
-
waitForResolution
public ProjectContextRestartRequestedException.RestartAllowance waitForResolution()
Wait for the resolution of the incident that requres the restart- Returns:
- The restart allowance. May not be
null
-
-