1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<!-- Generated by javadoc (build 1.5.0_11) on Sat Aug 18 11:01:02 CEST 2007 -->
6
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
8
ExceptionUtil (HttpClient 3.1 API)
11
<META NAME="keywords" CONTENT="org.apache.commons.httpclient.util.ExceptionUtil class">
13
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
15
<SCRIPT type="text/javascript">
16
function windowTitle()
18
parent.document.title="ExceptionUtil (HttpClient 3.1 API)";
26
<BODY BGCOLOR="white" onload="windowTitle();">
29
<!-- ========= START OF TOP NAVBAR ======= -->
30
<A NAME="navbar_top"><!-- --></A>
31
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
32
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
34
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
35
<A NAME="navbar_top_firstrow"><!-- --></A>
36
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
37
<TR ALIGN="center" VALIGN="top">
38
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
39
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
40
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
41
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ExceptionUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
42
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
43
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
44
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
45
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
49
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
55
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56
<A HREF="../../../../../org/apache/commons/httpclient/util/EncodingUtil.html" title="class in org.apache.commons.httpclient.util"><B>PREV CLASS</B></A>
57
<A HREF="../../../../../org/apache/commons/httpclient/util/HttpURLConnection.html" title="class in org.apache.commons.httpclient.util"><B>NEXT CLASS</B></A></FONT></TD>
58
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59
<A HREF="../../../../../index.html?org/apache/commons/httpclient/util/ExceptionUtil.html" target="_top"><B>FRAMES</B></A>
60
<A HREF="ExceptionUtil.html" target="_top"><B>NO FRAMES</B></A>
61
<SCRIPT type="text/javascript">
64
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
69
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
78
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
82
<A NAME="skip-navbar_top"></A>
83
<!-- ========= END OF TOP NAVBAR ========= -->
86
<!-- ======== START OF CLASS DATA ======== -->
89
org.apache.commons.httpclient.util</FONT>
91
Class ExceptionUtil</H2>
93
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
94
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.httpclient.util.ExceptionUtil</B>
98
<DT><PRE>public class <B>ExceptionUtil</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
102
The home for utility methods that handle various exception-related tasks.
107
<DT><B>Since:</B></DT>
109
<DT><B>Author:</B></DT>
110
<DD><a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a>, <a href="mailto:laura@lwerner.org">Laura Werner</a></DD>
116
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
118
<A NAME="constructor_summary"><!-- --></A>
119
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
120
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
121
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
122
<B>Constructor Summary</B></FONT></TH>
124
<TR BGCOLOR="white" CLASS="TableRowColor">
125
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/util/ExceptionUtil.html#ExceptionUtil()">ExceptionUtil</A></B>()</CODE>
128
</TD>
132
<!-- ========== METHOD SUMMARY =========== -->
134
<A NAME="method_summary"><!-- --></A>
135
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
136
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
137
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
138
<B>Method Summary</B></FONT></TH>
140
<TR BGCOLOR="white" CLASS="TableRowColor">
141
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142
<CODE>static void</CODE></FONT></TD>
143
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/util/ExceptionUtil.html#initCause(java.lang.Throwable, java.lang.Throwable)">initCause</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> throwable,
144
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> cause)</CODE>
147
If we're running on JDK 1.4 or later, initialize the cause for the given throwable.</TD>
149
<TR BGCOLOR="white" CLASS="TableRowColor">
150
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151
<CODE>static boolean</CODE></FONT></TD>
152
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/util/ExceptionUtil.html#isSocketTimeoutException(java.io.InterruptedIOException)">isSocketTimeoutException</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InterruptedIOException.html" title="class or interface in java.io">InterruptedIOException</A> e)</CODE>
155
If SocketTimeoutExceptionClass is defined, returns <tt>true</tt> only if the
156
exception is an instance of SocketTimeoutExceptionClass.</TD>
159
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
160
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
161
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
162
<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" title="class or interface in java.lang">Object</A></B></TH>
164
<TR BGCOLOR="white" CLASS="TableRowColor">
165
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#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#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#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#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#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#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#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#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#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#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#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
171
<!-- ========= CONSTRUCTOR DETAIL ======== -->
173
<A NAME="constructor_detail"><!-- --></A>
174
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
175
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
176
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
177
<B>Constructor Detail</B></FONT></TH>
181
<A NAME="ExceptionUtil()"><!-- --></A><H3>
184
public <B>ExceptionUtil</B>()</PRE>
188
<!-- ============ METHOD DETAIL ========== -->
190
<A NAME="method_detail"><!-- --></A>
191
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
192
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
193
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
194
<B>Method Detail</B></FONT></TH>
198
<A NAME="initCause(java.lang.Throwable, java.lang.Throwable)"><!-- --></A><H3>
201
public static void <B>initCause</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> throwable,
202
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> cause)</PRE>
204
<DD>If we're running on JDK 1.4 or later, initialize the cause for the given throwable.
207
<DT><B>Parameters:</B><DD><CODE>throwable</CODE> - The throwable.<DD><CODE>cause</CODE> - The cause of the throwable.</DL>
212
<A NAME="isSocketTimeoutException(java.io.InterruptedIOException)"><!-- --></A><H3>
213
isSocketTimeoutException</H3>
215
public static boolean <B>isSocketTimeoutException</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InterruptedIOException.html" title="class or interface in java.io">InterruptedIOException</A> e)</PRE>
217
<DD>If SocketTimeoutExceptionClass is defined, returns <tt>true</tt> only if the
218
exception is an instance of SocketTimeoutExceptionClass. If
219
SocketTimeoutExceptionClass is undefined, always returns <tt>true</tt>.
222
<DT><B>Parameters:</B><DD><CODE>e</CODE> - an instance of InterruptedIOException class.
223
<DT><B>Returns:</B><DD><tt>true</tt> if the exception signals socket timeout, <tt>false</tt>
227
<!-- ========= END OF CLASS DATA ========= -->
231
<!-- ======= START OF BOTTOM NAVBAR ====== -->
232
<A NAME="navbar_bottom"><!-- --></A>
233
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
234
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
236
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
237
<A NAME="navbar_bottom_firstrow"><!-- --></A>
238
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
239
<TR ALIGN="center" VALIGN="top">
240
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
241
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
242
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
243
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ExceptionUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
244
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
245
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
246
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
247
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
251
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
257
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
258
<A HREF="../../../../../org/apache/commons/httpclient/util/EncodingUtil.html" title="class in org.apache.commons.httpclient.util"><B>PREV CLASS</B></A>
259
<A HREF="../../../../../org/apache/commons/httpclient/util/HttpURLConnection.html" title="class in org.apache.commons.httpclient.util"><B>NEXT CLASS</B></A></FONT></TD>
260
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
261
<A HREF="../../../../../index.html?org/apache/commons/httpclient/util/ExceptionUtil.html" target="_top"><B>FRAMES</B></A>
262
<A HREF="ExceptionUtil.html" target="_top"><B>NO FRAMES</B></A>
263
<SCRIPT type="text/javascript">
266
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
271
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
278
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
279
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
280
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
281
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
284
<A NAME="skip-navbar_bottom"></A>
285
<!-- ======== END OF BOTTOM NAVBAR ======= -->
288
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.