Prints this Throwable and its backtrace to the standard error stream. This method prints a stack trace for this Throwable object on the error output stream that is the value of the field System.err. The first line of output contains the result of the method for this object. The format of the backtra
()
| 97 | * The format of the backtrace information depends on the implementation. |
| 98 | */ |
| 99 | public void printStackTrace(){ |
| 100 | System.out.println(stack); |
| 101 | if (cause != null) { |
| 102 | System.out.println("Caused by "); |
| 103 | cause.printStackTrace(); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | public void printStackTrace(PrintWriter s) { |
| 108 | s.println(stack); |