< prev index next >

src/java.xml/share/classes/org/xml/sax/SAXException.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -92,11 +92,11 @@
      *
      * @param e The exception to be wrapped in a SAXException.
      */
     public SAXException (Exception e)
     {
-        super();
+        super(e);
         this.exception = e;
     }
 
 
     /**

@@ -150,11 +150,11 @@
      * Return the cause of the exception
      *
      * @return Return the cause of the exception
      */
     public Throwable getCause() {
-        return exception;
+        return super.getCause();
     }
 
     /**
      * Override toString to pick up any embedded exception.
      *
< prev index next >