org.apache.commons.pipeline
Class ProcessingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.pipeline.StageException
              extended by 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

Constructor Summary
ProcessingException(Stage stage, Throwable cause, Object data, StageDriver.State driverState)
          Creates a new instance of ProcessingException
 
Method Summary
 Object getData()
          Returns the object that was being processed at the time of failure.
 StageDriver.State getDriverState()
          Returns the saved driver state at the time of processing failure.
 
Methods inherited from class org.apache.commons.pipeline.StageException
getSource
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.