1 28 29 package com.caucho.jsp; 30 31 import com.caucho.util.ExceptionWrapper; 32 33 import javax.servlet.jsp.JspException ; 34 35 38 public class QJspException extends JspException implements ExceptionWrapper { 39 private String _errorPage; 40 41 public QJspException() 42 { 43 } 44 45 public QJspException(String msg) 46 { 47 super(msg); 48 } 49 50 public QJspException(String msg, String errorPage) 51 { 52 super(msg); 53 54 _errorPage = errorPage; 55 } 56 57 public QJspException(Throwable e) 58 { 59 super(e); 60 } 61 62 public QJspException(Throwable e, String errorPage) 63 { 64 super(e); 65 66 _errorPage = errorPage; 67 } 68 69 public static JspException createJspException(Throwable e) 70 { 71 if (e instanceof JspException ) 72 return (JspException ) e; 73 else 74 return new QJspException(e); 75 } 76 77 public Throwable getRootCause() 78 { 79 return getCause(); 80 } 81 82 public String getErrorPage() 83 { 84 return _errorPage; 85 } 86 } 87 88 89 90 | Popular Tags |