PageRenderTime 50ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/apache-log4j-1.2.17/site/apidocs/org/apache/log4j/DefaultThrowableRenderer.html

#
HTML | 298 lines | 243 code | 33 blank | 22 comment | 0 complexity | b58345514871bb6e15d3b8f025fed05e MD5 | raw file
Possible License(s): Apache-2.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.6.0_23) -->
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <TITLE>
  8. DefaultThrowableRenderer (Apache Log4j 1.2.17 API)
  9. </TITLE>
  10. <META NAME="date" CONTENT="2012-05-06">
  11. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  12. <SCRIPT type="text/javascript">
  13. function windowTitle()
  14. {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="DefaultThrowableRenderer (Apache Log4j 1.2.17 API)";
  17. }
  18. }
  19. </SCRIPT>
  20. <NOSCRIPT>
  21. </NOSCRIPT>
  22. </HEAD>
  23. <BODY BGCOLOR="white" onload="windowTitle();">
  24. <HR>
  25. <!-- ========= START OF TOP NAVBAR ======= -->
  26. <A NAME="navbar_top"><!-- --></A>
  27. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  28. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  29. <TR>
  30. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  31. <A NAME="navbar_top_firstrow"><!-- --></A>
  32. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  33. <TR ALIGN="center" VALIGN="top">
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefaultThrowableRenderer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  39. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  40. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  41. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  42. </TR>
  43. </TABLE>
  44. </TD>
  45. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  46. </EM>
  47. </TD>
  48. </TR>
  49. <TR>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. &nbsp;<A HREF="../../../org/apache/log4j/DailyRollingFileAppender.html" title="class in org.apache.log4j"><B>PREV CLASS</B></A>&nbsp;
  52. &nbsp;<A HREF="../../../org/apache/log4j/EnhancedPatternLayout.html" title="class in org.apache.log4j"><B>NEXT CLASS</B></A></FONT></TD>
  53. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  54. <A HREF="../../../index.html?org/apache/log4j/DefaultThrowableRenderer.html" target="_top"><B>FRAMES</B></A> &nbsp;
  55. &nbsp;<A HREF="DefaultThrowableRenderer.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  56. &nbsp;<SCRIPT type="text/javascript">
  57. <!--
  58. if(window==top) {
  59. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  60. }
  61. //-->
  62. </SCRIPT>
  63. <NOSCRIPT>
  64. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  65. </NOSCRIPT>
  66. </FONT></TD>
  67. </TR>
  68. <TR>
  69. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  70. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  71. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  72. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  73. </TR>
  74. </TABLE>
  75. <A NAME="skip-navbar_top"></A>
  76. <!-- ========= END OF TOP NAVBAR ========= -->
  77. <HR>
  78. <!-- ======== START OF CLASS DATA ======== -->
  79. <H2>
  80. <FONT SIZE="-1">
  81. org.apache.log4j</FONT>
  82. <BR>
  83. Class DefaultThrowableRenderer</H2>
  84. <PRE>
  85. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  86. <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.apache.log4j.DefaultThrowableRenderer</B>
  87. </PRE>
  88. <DL>
  89. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../org/apache/log4j/spi/ThrowableRenderer.html" title="interface in org.apache.log4j.spi">ThrowableRenderer</A></DD>
  90. </DL>
  91. <HR>
  92. <DL>
  93. <DT><PRE>public final class <B>DefaultThrowableRenderer</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../org/apache/log4j/spi/ThrowableRenderer.html" title="interface in org.apache.log4j.spi">ThrowableRenderer</A></DL>
  94. </PRE>
  95. <P>
  96. Default implementation of ThrowableRenderer using
  97. Throwable.printStackTrace.
  98. <P>
  99. <P>
  100. <DL>
  101. <DT><B>Since:</B></DT>
  102. <DD>1.2.16</DD>
  103. </DL>
  104. <HR>
  105. <P>
  106. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  107. <A NAME="constructor_summary"><!-- --></A>
  108. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  109. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  110. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  111. <B>Constructor Summary</B></FONT></TH>
  112. </TR>
  113. <TR BGCOLOR="white" CLASS="TableRowColor">
  114. <TD><CODE><B><A HREF="../../../org/apache/log4j/DefaultThrowableRenderer.html#DefaultThrowableRenderer()">DefaultThrowableRenderer</A></B>()</CODE>
  115. <BR>
  116. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct new instance.</TD>
  117. </TR>
  118. </TABLE>
  119. &nbsp;
  120. <!-- ========== METHOD SUMMARY =========== -->
  121. <A NAME="method_summary"><!-- --></A>
  122. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  123. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  124. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  125. <B>Method Summary</B></FONT></TH>
  126. </TR>
  127. <TR BGCOLOR="white" CLASS="TableRowColor">
  128. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  129. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
  130. <TD><CODE><B><A HREF="../../../org/apache/log4j/DefaultThrowableRenderer.html#doRender(java.lang.Throwable)">doRender</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;throwable)</CODE>
  131. <BR>
  132. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Render Throwable.</TD>
  133. </TR>
  134. <TR BGCOLOR="white" CLASS="TableRowColor">
  135. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  136. <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
  137. <TD><CODE><B><A HREF="../../../org/apache/log4j/DefaultThrowableRenderer.html#render(java.lang.Throwable)">render</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;throwable)</CODE>
  138. <BR>
  139. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Render throwable using Throwable.printStackTrace.</TD>
  140. </TR>
  141. </TABLE>
  142. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  143. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  144. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  145. <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
  146. </TR>
  147. <TR BGCOLOR="white" CLASS="TableRowColor">
  148. <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  149. </TR>
  150. </TABLE>
  151. &nbsp;
  152. <P>
  153. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  154. <A NAME="constructor_detail"><!-- --></A>
  155. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  156. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  157. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  158. <B>Constructor Detail</B></FONT></TH>
  159. </TR>
  160. </TABLE>
  161. <A NAME="DefaultThrowableRenderer()"><!-- --></A><H3>
  162. DefaultThrowableRenderer</H3>
  163. <PRE>
  164. public <B>DefaultThrowableRenderer</B>()</PRE>
  165. <DL>
  166. <DD>Construct new instance.
  167. <P>
  168. </DL>
  169. <!-- ============ METHOD DETAIL ========== -->
  170. <A NAME="method_detail"><!-- --></A>
  171. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  172. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  173. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  174. <B>Method Detail</B></FONT></TH>
  175. </TR>
  176. </TABLE>
  177. <A NAME="doRender(java.lang.Throwable)"><!-- --></A><H3>
  178. doRender</H3>
  179. <PRE>
  180. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>doRender</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;throwable)</PRE>
  181. <DL>
  182. <DD>Render Throwable.
  183. <P>
  184. <DD><DL>
  185. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/log4j/spi/ThrowableRenderer.html#doRender(java.lang.Throwable)">doRender</A></CODE> in interface <CODE><A HREF="../../../org/apache/log4j/spi/ThrowableRenderer.html" title="interface in org.apache.log4j.spi">ThrowableRenderer</A></CODE></DL>
  186. </DD>
  187. <DD><DL>
  188. <DT><B>Parameters:</B><DD><CODE>throwable</CODE> - throwable, may not be null.
  189. <DT><B>Returns:</B><DD>String representation.</DL>
  190. </DD>
  191. </DL>
  192. <HR>
  193. <A NAME="render(java.lang.Throwable)"><!-- --></A><H3>
  194. render</H3>
  195. <PRE>
  196. public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>render</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;throwable)</PRE>
  197. <DL>
  198. <DD>Render throwable using Throwable.printStackTrace.
  199. <P>
  200. <DD><DL>
  201. </DL>
  202. </DD>
  203. <DD><DL>
  204. <DT><B>Parameters:</B><DD><CODE>throwable</CODE> - throwable, may not be null.
  205. <DT><B>Returns:</B><DD>string representation.</DL>
  206. </DD>
  207. </DL>
  208. <!-- ========= END OF CLASS DATA ========= -->
  209. <HR>
  210. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  211. <A NAME="navbar_bottom"><!-- --></A>
  212. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  213. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  214. <TR>
  215. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  216. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  217. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  218. <TR ALIGN="center" VALIGN="top">
  219. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  220. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  221. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  222. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefaultThrowableRenderer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  223. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  224. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  225. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  226. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  227. </TR>
  228. </TABLE>
  229. </TD>
  230. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  231. </EM>
  232. </TD>
  233. </TR>
  234. <TR>
  235. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  236. &nbsp;<A HREF="../../../org/apache/log4j/DailyRollingFileAppender.html" title="class in org.apache.log4j"><B>PREV CLASS</B></A>&nbsp;
  237. &nbsp;<A HREF="../../../org/apache/log4j/EnhancedPatternLayout.html" title="class in org.apache.log4j"><B>NEXT CLASS</B></A></FONT></TD>
  238. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  239. <A HREF="../../../index.html?org/apache/log4j/DefaultThrowableRenderer.html" target="_top"><B>FRAMES</B></A> &nbsp;
  240. &nbsp;<A HREF="DefaultThrowableRenderer.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  241. &nbsp;<SCRIPT type="text/javascript">
  242. <!--
  243. if(window==top) {
  244. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  245. }
  246. //-->
  247. </SCRIPT>
  248. <NOSCRIPT>
  249. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  250. </NOSCRIPT>
  251. </FONT></TD>
  252. </TR>
  253. <TR>
  254. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  255. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  256. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  257. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  258. </TR>
  259. </TABLE>
  260. <A NAME="skip-navbar_bottom"></A>
  261. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  262. <HR>
  263. Copyright &#169; 1999-2012 <a href="http://www.apache.org">Apache Software Foundation</a>. All Rights Reserved.
  264. </BODY>
  265. </HTML>