Package org.glassfish.deployapi
Class DeploymentStatusImplWithError
- java.lang.Object
-
- org.glassfish.deployapi.DeploymentStatusImpl
-
- org.glassfish.deployapi.DeploymentStatusImplWithError
-
- All Implemented Interfaces:
javax.enterprise.deploy.spi.status.DeploymentStatus
public class DeploymentStatusImplWithError extends DeploymentStatusImpl
Simple implementation of DeploymentStatus intended to describe an exception that occurred during a DeploymentManager method invocation.- Author:
- tjquinn
-
-
Constructor Summary
Constructors Constructor Description DeploymentStatusImplWithError()Creates a new instance of DeploymentStatusImplWithErrorDeploymentStatusImplWithError(javax.enterprise.deploy.shared.CommandType commandType, Throwable cause)Creates a new instance of DeploymentStatusImplWithError
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetCause()Returns the cause for this status.voidinitCause(Throwable cause)Assigns the cause for this status.StringtoString()Displays the status as a string, including stack trace information if error is present.-
Methods inherited from class org.glassfish.deployapi.DeploymentStatusImpl
getAction, getCommand, getMessage, getState, isCompleted, isFailed, isRunning, setCommand, setMessage, setState
-
-
-
-
Constructor Detail
-
DeploymentStatusImplWithError
public DeploymentStatusImplWithError()
Creates a new instance of DeploymentStatusImplWithError
-
DeploymentStatusImplWithError
public DeploymentStatusImplWithError(javax.enterprise.deploy.shared.CommandType commandType, Throwable cause)Creates a new instance of DeploymentStatusImplWithError
-
-
Method Detail
-
initCause
public void initCause(Throwable cause)
Assigns the cause for this status.- Parameters:
Throwable- that describes the error to be reported
-
getCause
public Throwable getCause()
Returns the cause for this status.- Returns:
- Throwable that describes the error associated with this status
-
-