1 package com.quadcap.http.servlets.jsp; 2 3 40 41 import javax.servlet.ServletException ; 42 43 import javax.servlet.http.HttpServletResponse ; 44 45 50 51 public class JspException extends ServletException { 52 int status; 53 Throwable next; 54 boolean reportedError = false; 55 56 public JspException(Throwable t) { 57 super(t.toString()); 58 next = t; 59 this.status = HttpServletResponse.SC_INTERNAL_SERVER_ERROR; 60 } 61 62 public JspException(int status, String msg) { 63 super(msg); 64 this.status = status; 65 } 66 67 public JspException(String msg) { 68 super(msg); 69 this.status = HttpServletResponse.SC_INTERNAL_SERVER_ERROR; 70 } 71 72 public int getHttpErrorCode() { 73 return status; 74 } 75 76 public Throwable getNext() { 77 return next; 78 } 79 80 public void setReportedError(boolean b) { reportedError = b; } 81 public boolean getReportedError() { return reportedError; } 82 } 83 | Popular Tags |