org.glassfish.deployapi
Class DeploymentStatusImplWithError

java.lang.Object
  extended by org.glassfish.deployapi.DeploymentStatusImpl
      extended by org.glassfish.deployapi.DeploymentStatusImplWithError
All Implemented Interfaces:
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
DeploymentStatusImplWithError()
          Creates a new instance of DeploymentStatusImplWithError
DeploymentStatusImplWithError(CommandType commandType, Throwable cause)
          Creates a new instance of DeploymentStatusImplWithError
 
Method Summary
 Throwable getCause()
          Returns the cause for this status.
 void initCause(Throwable cause)
          Assigns the cause for this status.
 String toString()
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeploymentStatusImplWithError

public DeploymentStatusImplWithError()
Creates a new instance of DeploymentStatusImplWithError


DeploymentStatusImplWithError

public DeploymentStatusImplWithError(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

toString

public String toString()
Displays the status as a string, including stack trace information if error is present.

Overrides:
toString in class Object
Returns:
String describing the status, including stack trace info from the error (if present).


Copyright © 2012. All Rights Reserved.