Class 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 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
      • 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).