PageRenderTime 29ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/tomcat/webapps/tomcat-docs/jspapi/javax/servlet/jsp/ErrorData.html

http://xformsdb.googlecode.com/
HTML | 341 lines | 272 code | 44 blank | 25 comment | 0 complexity | ef3350096ddee15ff071d2d67f201642 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.4.2_12) on Thu Aug 28 22:09:22 CDT 2008 -->
  6. <TITLE>
  7. ErrorData (JavaServer Pages API Documentation)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="javax.servlet.jsp.ErrorData class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. parent.document.title="ErrorData (JavaServer Pages API Documentation)";
  15. }
  16. </SCRIPT>
  17. </HEAD>
  18. <BODY BGCOLOR="white" onload="windowTitle();">
  19. <!-- ========= START OF TOP NAVBAR ======= -->
  20. <A NAME="navbar_top"><!-- --></A>
  21. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  22. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  23. <TR>
  24. <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  25. <A NAME="navbar_top_firstrow"><!-- --></A>
  26. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  27. <TR ALIGN="center" VALIGN="top">
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ErrorData.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  32. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  36. </TR>
  37. </TABLE>
  38. </TD>
  39. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  40. </EM>
  41. </TD>
  42. </TR>
  43. <TR>
  44. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  45. &nbsp;PREV CLASS&nbsp;
  46. &nbsp;<A HREF="../../../javax/servlet/jsp/JspContext.html" title="class in javax.servlet.jsp"><B>NEXT CLASS</B></A></FONT></TD>
  47. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  48. <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
  49. &nbsp;<A HREF="ErrorData.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  50. &nbsp;<SCRIPT type="text/javascript">
  51. <!--
  52. if(window==top) {
  53. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  54. }
  55. //-->
  56. </SCRIPT>
  57. <NOSCRIPT>
  58. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  59. </NOSCRIPT>
  60. </FONT></TD>
  61. </TR>
  62. <TR>
  63. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  64. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  65. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  66. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  67. </TR>
  68. </TABLE>
  69. <A NAME="skip-navbar_top"></A>
  70. <!-- ========= END OF TOP NAVBAR ========= -->
  71. <HR>
  72. <!-- ======== START OF CLASS DATA ======== -->
  73. <H2>
  74. <FONT SIZE="-1">
  75. javax.servlet.jsp</FONT>
  76. <BR>
  77. Class ErrorData</H2>
  78. <PRE>
  79. java.lang.Object
  80. <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>javax.servlet.jsp.ErrorData</B>
  81. </PRE>
  82. <HR>
  83. <DL>
  84. <DT>public final class <B>ErrorData</B><DT>extends java.lang.Object</DL>
  85. <P>
  86. Contains information about an error, for error pages.
  87. The information contained in this instance is meaningless if not used
  88. in the context of an error page. To indicate a JSP is an error page,
  89. the page author must set the isErrorPage attribute of the page directive
  90. to "true".
  91. <P>
  92. <P>
  93. <DL>
  94. <DT><B>Since:</B></DT>
  95. <DD>2.0</DD>
  96. <DT><B>See Also:</B><DD><A HREF="../../../javax/servlet/jsp/PageContext.html#getErrorData()"><CODE>PageContext.getErrorData()</CODE></A></DL>
  97. <HR>
  98. <P>
  99. <!-- ======== NESTED CLASS SUMMARY ======== -->
  100. <!-- =========== FIELD SUMMARY =========== -->
  101. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  102. <A NAME="constructor_summary"><!-- --></A>
  103. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  104. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  105. <TD COLSPAN=2><FONT SIZE="+2">
  106. <B>Constructor Summary</B></FONT></TD>
  107. </TR>
  108. <TR BGCOLOR="white" CLASS="TableRowColor">
  109. <TD><CODE><B><A HREF="../../../javax/servlet/jsp/ErrorData.html#ErrorData(java.lang.Throwable, int, java.lang.String, java.lang.String)">ErrorData</A></B>(java.lang.Throwable&nbsp;throwable,
  110. int&nbsp;statusCode,
  111. java.lang.String&nbsp;uri,
  112. java.lang.String&nbsp;servletName)</CODE>
  113. <BR>
  114. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new ErrorData object.</TD>
  115. </TR>
  116. </TABLE>
  117. &nbsp;
  118. <!-- ========== METHOD SUMMARY =========== -->
  119. <A NAME="method_summary"><!-- --></A>
  120. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  121. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  122. <TD COLSPAN=2><FONT SIZE="+2">
  123. <B>Method Summary</B></FONT></TD>
  124. </TR>
  125. <TR BGCOLOR="white" CLASS="TableRowColor">
  126. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  127. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  128. <TD><CODE><B><A HREF="../../../javax/servlet/jsp/ErrorData.html#getRequestURI()">getRequestURI</A></B>()</CODE>
  129. <BR>
  130. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the request URI.</TD>
  131. </TR>
  132. <TR BGCOLOR="white" CLASS="TableRowColor">
  133. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  134. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  135. <TD><CODE><B><A HREF="../../../javax/servlet/jsp/ErrorData.html#getServletName()">getServletName</A></B>()</CODE>
  136. <BR>
  137. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of the servlet invoked.</TD>
  138. </TR>
  139. <TR BGCOLOR="white" CLASS="TableRowColor">
  140. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  141. <CODE>&nbsp;int</CODE></FONT></TD>
  142. <TD><CODE><B><A HREF="../../../javax/servlet/jsp/ErrorData.html#getStatusCode()">getStatusCode</A></B>()</CODE>
  143. <BR>
  144. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the status code of the error.</TD>
  145. </TR>
  146. <TR BGCOLOR="white" CLASS="TableRowColor">
  147. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  148. <CODE>&nbsp;java.lang.Throwable</CODE></FONT></TD>
  149. <TD><CODE><B><A HREF="../../../javax/servlet/jsp/ErrorData.html#getThrowable()">getThrowable</A></B>()</CODE>
  150. <BR>
  151. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Throwable that caused the error.</TD>
  152. </TR>
  153. </TABLE>
  154. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  155. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  156. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  157. <TD><B>Methods inherited from class java.lang.Object</B></TD>
  158. </TR>
  159. <TR BGCOLOR="white" CLASS="TableRowColor">
  160. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  161. </TR>
  162. </TABLE>
  163. &nbsp;
  164. <P>
  165. <!-- ============ FIELD DETAIL =========== -->
  166. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  167. <A NAME="constructor_detail"><!-- --></A>
  168. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  169. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  170. <TD COLSPAN=1><FONT SIZE="+2">
  171. <B>Constructor Detail</B></FONT></TD>
  172. </TR>
  173. </TABLE>
  174. <A NAME="ErrorData(java.lang.Throwable, int, java.lang.String, java.lang.String)"><!-- --></A><H3>
  175. ErrorData</H3>
  176. <PRE>
  177. public <B>ErrorData</B>(java.lang.Throwable&nbsp;throwable,
  178. int&nbsp;statusCode,
  179. java.lang.String&nbsp;uri,
  180. java.lang.String&nbsp;servletName)</PRE>
  181. <DL>
  182. <DD>Creates a new ErrorData object.
  183. <P>
  184. <DT><B>Parameters:</B><DD><CODE>throwable</CODE> - The Throwable that is the cause of the error<DD><CODE>statusCode</CODE> - The status code of the error<DD><CODE>uri</CODE> - The request URI<DD><CODE>servletName</CODE> - The name of the servlet invoked</DL>
  185. <!-- ============ METHOD DETAIL ========== -->
  186. <A NAME="method_detail"><!-- --></A>
  187. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  188. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  189. <TD COLSPAN=1><FONT SIZE="+2">
  190. <B>Method Detail</B></FONT></TD>
  191. </TR>
  192. </TABLE>
  193. <A NAME="getThrowable()"><!-- --></A><H3>
  194. getThrowable</H3>
  195. <PRE>
  196. public java.lang.Throwable <B>getThrowable</B>()</PRE>
  197. <DL>
  198. <DD>Returns the Throwable that caused the error.
  199. <P>
  200. <DD><DL>
  201. <DT><B>Returns:</B><DD>The Throwable that caused the error</DL>
  202. </DD>
  203. </DL>
  204. <HR>
  205. <A NAME="getStatusCode()"><!-- --></A><H3>
  206. getStatusCode</H3>
  207. <PRE>
  208. public int <B>getStatusCode</B>()</PRE>
  209. <DL>
  210. <DD>Returns the status code of the error.
  211. <P>
  212. <DD><DL>
  213. <DT><B>Returns:</B><DD>The status code of the error</DL>
  214. </DD>
  215. </DL>
  216. <HR>
  217. <A NAME="getRequestURI()"><!-- --></A><H3>
  218. getRequestURI</H3>
  219. <PRE>
  220. public java.lang.String <B>getRequestURI</B>()</PRE>
  221. <DL>
  222. <DD>Returns the request URI.
  223. <P>
  224. <DD><DL>
  225. <DT><B>Returns:</B><DD>The request URI</DL>
  226. </DD>
  227. </DL>
  228. <HR>
  229. <A NAME="getServletName()"><!-- --></A><H3>
  230. getServletName</H3>
  231. <PRE>
  232. public java.lang.String <B>getServletName</B>()</PRE>
  233. <DL>
  234. <DD>Returns the name of the servlet invoked.
  235. <P>
  236. <DD><DL>
  237. <DT><B>Returns:</B><DD>The name of the servlet invoked</DL>
  238. </DD>
  239. </DL>
  240. <!-- ========= END OF CLASS DATA ========= -->
  241. <HR>
  242. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  243. <A NAME="navbar_bottom"><!-- --></A>
  244. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  245. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  246. <TR>
  247. <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  248. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  249. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  250. <TR ALIGN="center" VALIGN="top">
  251. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  252. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  253. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  254. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ErrorData.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  255. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  256. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  257. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  258. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  259. </TR>
  260. </TABLE>
  261. </TD>
  262. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  263. </EM>
  264. </TD>
  265. </TR>
  266. <TR>
  267. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  268. &nbsp;PREV CLASS&nbsp;
  269. &nbsp;<A HREF="../../../javax/servlet/jsp/JspContext.html" title="class in javax.servlet.jsp"><B>NEXT CLASS</B></A></FONT></TD>
  270. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  271. <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
  272. &nbsp;<A HREF="ErrorData.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  273. &nbsp;<SCRIPT type="text/javascript">
  274. <!--
  275. if(window==top) {
  276. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  277. }
  278. //-->
  279. </SCRIPT>
  280. <NOSCRIPT>
  281. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  282. </NOSCRIPT>
  283. </FONT></TD>
  284. </TR>
  285. <TR>
  286. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  287. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  288. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  289. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  290. </TR>
  291. </TABLE>
  292. <A NAME="skip-navbar_bottom"></A>
  293. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  294. <HR>
  295. Copyright &copy; 1999-2002 The Apache Software Foundation. All Rights Reserved.
  296. </BODY>
  297. </HTML>