org.apache.commons.pipeline
Class ProcessingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.pipeline.StageException
org.apache.commons.pipeline.ProcessingException
- All Implemented Interfaces:
- Serializable
public class ProcessingException
- extends StageException
This exception class is used to store detailed information about
a failure in the processing step of a stage including the failing data,
the driver state at the time of failure, and any exceptions encountered.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ProcessingException
public ProcessingException(Stage stage,
Throwable cause,
Object data,
StageDriver.State driverState)
- Creates a new instance of ProcessingException
- Parameters:
data
- The object which was not able to be processed.throwable
- The exception that occurred.
getData
public Object getData()
- Returns the object that was being processed at the time of failure.
- Returns:
- The object which was not able to be processed.
getDriverState
public StageDriver.State getDriverState()
- Returns the saved driver state at the time of processing failure.
- Returns:
- the driver state at the time of processing failure.
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.