org.apache.commons.workflow
Class StepException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.workflow.WorkflowException
              extended by org.apache.commons.workflow.StepException
All Implemented Interfaces:
Serializable

public class StepException
extends WorkflowException

A StepException is used to report problems encountered during the dynamic execution of a specific Step.

Version:
$Revision: 155475 $ $Date: 2005-02-26 13:31:11 +0000 (Sat, 26 Feb 2005) $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
protected  Step step
          The Step that was being executed when the problem occurred.
 
Fields inherited from class org.apache.commons.workflow.WorkflowException
cause
 
Constructor Summary
StepException()
          Construct an empty StepException.
StepException(Step step)
          Construct an empty StepException occurring with the specified Step.
StepException(String message)
          Construct a StepException with the specified message.
StepException(String message, Step step)
          Construct a StepException with the specified message occurring with the specified Step.
StepException(String message, Throwable cause)
          Construct a StepException with the specified message and underlying cause.
StepException(String message, Throwable cause, Step step)
          Construct a StepException with the specified message and underlying cause, occurring in the specified Step.
StepException(Throwable cause)
          Construct a StepException with the specified underlying cause.
StepException(Throwable cause, Step step)
          Construct a StepException with the specified underlying cause, occurring in the specified Step.
 
Method Summary
 Step getStep()
           
 String toString()
          Render a printable version of this exception.
 
Methods inherited from class org.apache.commons.workflow.WorkflowException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

step

protected Step step
The Step that was being executed when the problem occurred.

Constructor Detail

StepException

public StepException()
Construct an empty StepException.


StepException

public StepException(Step step)
Construct an empty StepException occurring with the specified Step.

Parameters:
step - Step that caused this StepException

StepException

public StepException(String message)
Construct a StepException with the specified message.

Parameters:
message - Message associated with this exception

StepException

public StepException(String message,
                     Step step)
Construct a StepException with the specified message occurring with the specified Step.

Parameters:
message - Message associated with this exception
step - Step that caused this StepException

StepException

public StepException(Throwable cause)
Construct a StepException with the specified underlying cause. [JDK 1.4 compatible]

Parameters:
cause - Underlying root cause

StepException

public StepException(Throwable cause,
                     Step step)
Construct a StepException with the specified underlying cause, occurring in the specified Step. [JDK 1.4 compatible]

Parameters:
cause - Underlying root cause
step - Step that caused this StepException

StepException

public StepException(String message,
                     Throwable cause)
Construct a StepException with the specified message and underlying cause. [JDK 1.4 compatbile]

Parameters:
message - Message associated with this exception
cause - Underlying root cause

StepException

public StepException(String message,
                     Throwable cause,
                     Step step)
Construct a StepException with the specified message and underlying cause, occurring in the specified Step. [JDK 1.4 compatbile]

Parameters:
message - Message associated with this exception
cause - Underlying root cause
step - Step that caused this StepException
Method Detail

getStep

public Step getStep()

toString

public String toString()
Render a printable version of this exception.

Overrides:
toString in class Throwable


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.