Author: simonetripodi
Date: Sat Jun 11 17:46:58 2011
New Revision: 1134707

URL: http://svn.apache.org/viewvc?rev=1134707&view=rev
Log:
reorganizing basic exception according to latest RuntimeException APIs

Modified:
    
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/exception/GraphException.java

Modified: 
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/exception/GraphException.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/exception/GraphException.java?rev=1134707&r1=1134706&r2=1134707&view=diff
==============================================================================
--- 
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/exception/GraphException.java
 (original)
+++ 
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/exception/GraphException.java
 Sat Jun 11 17:46:58 2011
@@ -19,20 +19,15 @@ package org.apache.commons.graph.excepti
  * under the License.
  */
 
+
 /**
  * GraphException This is the superclass of all exceptions that can be thrown.
  */
-
-import java.io.PrintStream;
-import java.io.PrintWriter;
-
 public class GraphException extends RuntimeException
 {
 
     private static final long serialVersionUID = 6356965258279945475L;
 
-    private Throwable cause = null;
-
     /**
      * Constructor for the GraphException object
      */
@@ -58,24 +53,7 @@ public class GraphException extends Runt
      */
     public GraphException(Throwable cause)
     {
-        super(cause.getMessage());
-        this.cause = cause;
-    }
-
-    public Throwable getCause() {
-       return cause;
+        super( cause );
     }
 
-    public void printStackTrace() {
-       cause.printStackTrace();
-    }
-
-    public void printStackTrace( PrintStream s ) {
-       cause.printStackTrace( s );
-    }
-
-    public void printStackTrace( PrintWriter w ) {
-       cause.printStackTrace( w );
-    }
-       
 }


Reply via email to