|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
com.microsoft.tfs.core.httpclient.HttpException
public class HttpException
Signals that an HTTP or HttpClient exception has occurred.
| Constructor Summary | |
|---|---|
HttpException()
Creates a new HttpException with a null detail message. |
|
HttpException(java.lang.String message)
Creates a new HttpException with the specified detail message. |
|
HttpException(java.lang.String message,
java.lang.Throwable cause)
Creates a new HttpException with the specified detail message and cause. |
|
| Method Summary | |
|---|---|
java.lang.Throwable |
getCause()
Return the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable. |
java.lang.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. |
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. |
void |
printStackTrace()
Print this HttpException and its stack trace to the standard error stream. |
void |
printStackTrace(java.io.PrintStream s)
Print this HttpException and its stack trace to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Print this HttpException and its stack trace to the specified print writer. |
void |
setReason(java.lang.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. |
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpException()
public HttpException(java.lang.String message)
message - the exception detail message
public HttpException(java.lang.String message,
java.lang.Throwable cause)
message - the exception detail messagecause - the Throwable that caused this exception, or
null if the cause is unavailable, unknown, or not a
Throwable| Method Detail |
|---|
public java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream s)
printStackTrace in class java.lang.Throwables - the PrintStream to which the exception and its stack
trace should be writtenpublic void printStackTrace(java.io.PrintWriter s)
printStackTrace in class java.lang.Throwables - the PrintWriter to which the exception and its stack
trace should be written@Deprecated public void setReason(java.lang.String reason)
reason - The reason for the exception.@Deprecated public java.lang.String getReason()
@Deprecated public void setReasonCode(int code)
code - The reason for the exception. This is intended to be an HTTP
status code.@Deprecated public int getReasonCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||