1 28 29 package com.caucho.jsp; 30 31 import com.caucho.java.LineMap; 32 import com.caucho.java.LineMapException; 33 import com.caucho.util.ExceptionWrapper; 34 35 import javax.servlet.ServletException ; 36 import java.io.Serializable ; 37 38 42 class JspLineException extends ServletException 43 implements ExceptionWrapper, LineMapException, Serializable { 44 protected LineMap _lineMap; 45 46 public JspLineException(Throwable e, LineMap lineMap) 47 { 48 super(e); 49 50 _lineMap = lineMap; 51 } 52 53 public String getMessage() 54 { 55 return getRootCause().getMessage(); 56 } 57 58 public String toString() 59 { 60 return getRootCause().toString(); 61 } 62 63 public LineMap getLineMap() 64 { 65 return _lineMap; 66 } 67 } 68 | Popular Tags |