API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. HttpRetryException View Source
Author(s)
Michael McMahon
Since
1.5
Version
1.2, 11/17/05
Serial
Hierarchy
 Object
      Throwable
          Exception
              IOException
                  HttpRetryException
Implements
Subclasses
Description
public exception HttpRetryException
  Thrown to indicate that a HTTP request needs to be retried but cannot be retried automatically, due to streaming mode being enabled.
See also:   
Constructors
public HttpRetryException (String detail, int code)
  Constructs a new HttpRetryException from the specified response code and exception detail message
public HttpRetryException (String detail, int code, String location)
  Constructs a new HttpRetryException with detail message responseCode and the contents of the Location response header field.
Methods
Hide/Show inherited methods
publicsynchronizednative Throwable fillInStackTrace () [Inherited From Throwable]
  Fills in the execution stack trace.
public Throwable getCause () [Inherited From Throwable]
  Returns the cause of this throwable or null if the cause is nonexistent or unknown.
public String getLocalizedMessage () [Inherited From Throwable]
  Creates a localized description of this throwable.
public String getLocation ()
  Returns the value of the Location header field if the error resulted from redirection.
public String getMessage () [Inherited From Throwable]
  Returns the detail message string of this throwable.
public String getReason ()
  Returns a string explaining why the http request could not be retried.
public StackTraceElement getStackTrace () [Inherited From Throwable]
  Provides programmatic access to the stack trace information printed by Throwable.printStackTrace().
publicsynchronized Throwable initCause (Throwable cause) [Inherited From Throwable]
  Initializes the cause of this throwable to the specified value.
public void printStackTrace () [Inherited From Throwable]
  Prints this throwable and its backtrace to the standard error stream.
public void printStackTrace (PrintStream s) [Inherited From Throwable]
  Prints this throwable and its backtrace to the specified print stream.
public void printStackTrace (PrintWriter s) [Inherited From Throwable]
  Prints this throwable and its backtrace to the specified print writer.
public int responseCode ()
  Returns the http response code
public void setStackTrace (StackTraceElement stackTrace) [Inherited From Throwable]
  Sets the stack trace elements that will be returned by Throwable.getStackTrace() and printed by Throwable.printStackTrace() and related methods.
public String toString () [Inherited From Throwable]
  Returns a short description of this throwable.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar