< prev index next >

src/java.xml.bind/share/classes/javax/xml/bind/JAXBException.java

Print this page




 143      */
 144     public String toString() {
 145         return linkedException == null ?
 146             super.toString() :
 147             super.toString() + "\n - with linked exception:\n[" +
 148                                 linkedException.toString()+ "]";
 149     }
 150 
 151     /**
 152      * Prints this JAXBException and its stack trace (including the stack trace
 153      * of the linkedException if it is non-null) to the PrintStream.
 154      *
 155      * @param s PrintStream to use for output
 156      */
 157     public void printStackTrace( java.io.PrintStream s ) {
 158         super.printStackTrace(s);
 159     }
 160 
 161     /**
 162      * Prints this JAXBException and its stack trace (including the stack trace
 163      * of the linkedException if it is non-null) to <tt>System.err</tt>.
 164      *
 165      */
 166     public void printStackTrace() {
 167         super.printStackTrace();
 168     }
 169 
 170     /**
 171      * Prints this JAXBException and its stack trace (including the stack trace
 172      * of the linkedException if it is non-null) to the PrintWriter.
 173      *
 174      * @param s PrintWriter to use for output
 175      */
 176     public void printStackTrace(PrintWriter s) {
 177         super.printStackTrace(s);
 178     }
 179 
 180     @Override
 181     public Throwable getCause() {
 182         return linkedException;
 183     }


 143      */
 144     public String toString() {
 145         return linkedException == null ?
 146             super.toString() :
 147             super.toString() + "\n - with linked exception:\n[" +
 148                                 linkedException.toString()+ "]";
 149     }
 150 
 151     /**
 152      * Prints this JAXBException and its stack trace (including the stack trace
 153      * of the linkedException if it is non-null) to the PrintStream.
 154      *
 155      * @param s PrintStream to use for output
 156      */
 157     public void printStackTrace( java.io.PrintStream s ) {
 158         super.printStackTrace(s);
 159     }
 160 
 161     /**
 162      * Prints this JAXBException and its stack trace (including the stack trace
 163      * of the linkedException if it is non-null) to {@code System.err}.
 164      *
 165      */
 166     public void printStackTrace() {
 167         super.printStackTrace();
 168     }
 169 
 170     /**
 171      * Prints this JAXBException and its stack trace (including the stack trace
 172      * of the linkedException if it is non-null) to the PrintWriter.
 173      *
 174      * @param s PrintWriter to use for output
 175      */
 176     public void printStackTrace(PrintWriter s) {
 177         super.printStackTrace(s);
 178     }
 179 
 180     @Override
 181     public Throwable getCause() {
 182         return linkedException;
 183     }
< prev index next >