Author: nuttycom
Date: Thu Sep 7 15:38:20 2006
New Revision: 441277
URL: http://svn.apache.org/viewvc?view=rev&rev=441277
Log:
Removed constructors that allow StageExceptions to be created without a Stage
reference
Modified:
jakarta/commons/sandbox/pipeline/trunk/src/main/java/org/apache/commons/pipeline/StageException.java
Modified:
jakarta/commons/sandbox/pipeline/trunk/src/main/java/org/apache/commons/pipeline/StageException.java
URL:
http://svn.apache.org/viewvc/jakarta/commons/sandbox/pipeline/trunk/src/main/java/org/apache/commons/pipeline/StageException.java?view=diff&rev=441277&r1=441276&r2=441277
==============================================================================
---
jakarta/commons/sandbox/pipeline/trunk/src/main/java/org/apache/commons/pipeline/StageException.java
(original)
+++
jakarta/commons/sandbox/pipeline/trunk/src/main/java/org/apache/commons/pipeline/StageException.java
Thu Sep 7 15:38:20 2006
@@ -21,61 +21,38 @@
*/
public class StageException extends java.lang.Exception {
//Stage within which the error occurred
- private Stage source;
+ private Stage source;
/**
* Creates a new instance of <code>StageException</code> without detail
message.
+ * @param source the stage that was the source of the exception
*/
- public StageException() {
+ public StageException(Stage source) {
+ this.source = source;
}
/**
* Constructs an instance of <code>StageException</code> with the
specified detail message.
- * @param msg the detail message for the error that occurred.
+ * @param source the stage that was the source of the exception
+ * @param msg the detail message.
*/
- public StageException(String msg) {
+ public StageException(Stage source, String msg) {
super(msg);
+ this.source = source;
}
- /**
- * Constructs an instance of <code>StageException</code> with the
specified cause.
- * @param thr The underlying exception that caused this exception to be
thrown.
- */
- public StageException(Throwable thr) {
- super(thr);
- }
-
-
/**
* Constructs an instance of <code>StageException</code> with the
specified detail message and cause
+ * @param source the stage where the error occurred
* @param msg the detail message.
* @param cause Throwable that caused this exception.
*/
- public StageException(String msg, Throwable cause) {
- super(msg, cause);
- }
-
-
- /**
- * Creates a new instance of <code>StageException</code> without detail
message.
- * @param source the stage that was the source of the exception
- */
- public StageException(Stage source) {
- this.source = source;
- }
-
-
- /**
- * Constructs an instance of <code>StageException</code> with the
specified detail message.
- * @param source the stage that was the source of the exception
- * @param msg the detail message.
- */
- public StageException(Stage source, String msg) {
- super(msg);
+ public StageException(Stage source, Throwable cause) {
+ super(cause);
this.source = source;
- }
+ }
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]