1 17 package javax.servlet.jsp; 18 19 24 25 public class JspException extends Exception { 26 27 private Throwable rootCause; 28 29 30 33 public JspException() { 34 } 35 36 37 47 public JspException(String msg) { 48 super(msg); 49 } 50 51 52 68 69 public JspException(String message, Throwable rootCause) { 70 super(message); 71 this.rootCause = rootCause; 72 } 73 74 75 94 95 public JspException(Throwable rootCause) { 96 super(rootCause.getLocalizedMessage()); 97 this.rootCause = rootCause; 98 } 99 100 101 109 110 public Throwable getRootCause() { 111 return rootCause; 112 } 113 } 114 | Popular Tags |