|
|||||||||
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
edu.harvard.cfa.vo.tapclient.util.HttpException
public class HttpException
An exception used to indicate a service responded with an unexpected HTTP response code.
Constructor Summary | |
---|---|
HttpException(int statusCode)
Construct an HttpException object from the given HTTP status code. |
|
HttpException(java.lang.String message)
Construct an HttpException object from the given HTTP status code. |
|
HttpException(java.lang.String message,
int statusCode)
Construct an HttpException object from the given HTTP status code. |
|
HttpException(java.lang.String message,
int statusCode,
java.lang.String content)
Construct an HttpException object from the given HTTP status code. |
|
HttpException(java.lang.String message,
java.lang.Throwable cause)
Construct an HttpException object from the given HTTP status code. |
|
HttpException(java.lang.Throwable cause)
Construct an HttpException object from the given HTTP status code. |
Method Summary | |
---|---|
java.lang.String |
getContent()
Get the HTTP response content. |
int |
getStatusCode()
Get the HTTP Status Code. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HttpException(int statusCode)
statusCode
- the HTTP status code, for example 404 for requests that are not found.public HttpException(java.lang.String message)
message
- the detail message string of this HttpException. If null, it defaults to a string representation of the status code.public HttpException(java.lang.String message, int statusCode)
message
- the detail message string of this HttpException. If null, it defaults to a string representation of the status code.statusCode
- the HTTP status code, for example 404 for requests that are not found.public HttpException(java.lang.String message, int statusCode, java.lang.String content)
message
- the detail message string of this HttpException. If null, it defaults to a string representation of the status code.statusCode
- the HTTP status code, for example 404 for requests that are not found.content
- the HTTP response body contentpublic HttpException(java.lang.String message, java.lang.Throwable cause)
message
- the detail message string of this HttpException. If null, it defaults to a string representation of the status code.cause
- the cause of the exception.public HttpException(java.lang.Throwable cause)
cause
- the cause of the exception.Method Detail |
---|
public int getStatusCode()
public java.lang.String getContent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |