Save This Page
Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » [javadoc | source]
org.apache.commons.httpclient
public class: HttpException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.io.IOException
            org.apache.commons.httpclient.HttpException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    RedirectException, InvalidRedirectLocationException, InvalidCredentialsException, ProtocolException, AuthenticationException, CircularRedirectException, URIException, AuthChallengeException, CredentialsNotAvailableException, HttpRecoverableException, MalformedChallengeException, HttpContentTooLargeException, MalformedCookieException

Signals that an HTTP or HttpClient exception has occurred.
Constructor:
 public HttpException() 
 public HttpException(String message) 
    Creates a new HttpException with the specified detail message.
    Parameters:
    message - the exception detail message
 public HttpException(String message,
    Throwable cause) 
    Creates a new HttpException with the specified detail message and cause.
    Parameters:
    message - the exception detail message
    cause - the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable
    since: 3.0 -
Method from org.apache.commons.httpclient.HttpException Summary:
getCause,   getReason,   getReasonCode,   printStackTrace,   printStackTrace,   printStackTrace,   setReason,   setReasonCode
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.HttpException Detail:
 public Throwable getCause() 
    Return the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable.
 public String getReason() 
Deprecated! HttpClient - no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.

    Get the text description of the reason for an exception.
 public int getReasonCode() 
Deprecated! HttpClient - no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.

    Get the status code description of the reason for an exception.
 public  void printStackTrace() 
    Print this HttpException and its stack trace to the standard error stream.
 public  void printStackTrace(PrintStream s) 
    Print this HttpException and its stack trace to the specified print stream.
 public  void printStackTrace(PrintWriter s) 
    Print this HttpException and its stack trace to the specified print writer.
 public  void setReason(String reason) 
Deprecated! HttpClient - no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.

    Sets the text description of the reason for an exception.
 public  void setReasonCode(int code) 
Deprecated! HttpClient - no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.

    Sets the status code description of the reason for an exception.