org.apache.commons.pipeline
Class StageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.pipeline.StageException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ProcessingException

public class StageException
extends Exception

Exception wrapper class for exceptions that occur while processing a stage.

See Also:
Serialized Form

Constructor Summary
StageException(Stage source)
          Creates a new instance of StageException without detail message.
StageException(Stage source, String msg)
          Constructs an instance of StageException with the specified detail message.
StageException(Stage source, String msg, Throwable cause)
          Constructs an instance of StageException with the specified detail message and cause
StageException(Stage source, Throwable cause)
          Constructs an instance of StageException with the specified detail message and cause
 
Method Summary
 Stage getSource()
          Returns a reference to the Stage object where the exception occurred.
 
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

StageException

public StageException(Stage source)
Creates a new instance of StageException without detail message.

Parameters:
source - the stage that was the source of the exception

StageException

public StageException(Stage source,
                      String msg)
Constructs an instance of StageException with the specified detail message.

Parameters:
source - the stage that was the source of the exception
msg - the detail message.

StageException

public StageException(Stage source,
                      Throwable cause)
Constructs an instance of StageException with the specified detail message and cause

Parameters:
source - the stage where the error occurred
msg - the detail message.
cause - Throwable that caused this exception.

StageException

public StageException(Stage source,
                      String msg,
                      Throwable cause)
Constructs an instance of StageException with the specified detail message and cause

Parameters:
source - the stage where the error occurred
msg - the detail message.
cause - Throwable that caused this exception.
Method Detail

getSource

public Stage getSource()
Returns a reference to the Stage object where the exception occurred.

Returns:
a reference to the Stage object where the exception occurred.


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.