1 48 49 package org.jpublish; 50 51 import java.io.PrintWriter ; 52 53 58 public class JPublishRuntimeException extends RuntimeException { 59 60 private Throwable t; 61 62 65 public JPublishRuntimeException() { 66 super(); 67 } 68 69 74 public JPublishRuntimeException(String message) { 75 super(message); 76 } 77 78 84 public JPublishRuntimeException(String message, Throwable t) { 85 super(message); 86 this.t = t; 87 } 88 89 94 public void printStackTrace(PrintWriter out) { 95 if (t != null) { 96 t.printStackTrace(out); 97 } 98 super.printStackTrace(out); 99 } 100 101 } 102 | Popular Tags |