|
Spring for Android | ||||||||
| 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.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.client.RestClientException
org.springframework.web.client.UnknownHttpStatusCodeException
public class UnknownHttpStatusCodeException
Exception thrown when an unknown (or custom) HTTP status code is received.
| Constructor Summary | |
|---|---|
UnknownHttpStatusCodeException(int rawStatusCode,
java.lang.String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
java.nio.charset.Charset responseCharset)
Construct a new instance of HttpStatusCodeException based on an
HttpStatus, status text, and response body content. |
|
| Method Summary | |
|---|---|
int |
getRawStatusCode()
Return the raw HTTP status code value. |
byte[] |
getResponseBodyAsByteArray()
Return the response body as a byte array. |
java.lang.String |
getResponseBodyAsString()
Return the response body as a string. |
HttpHeaders |
getResponseHeaders()
Return the HTTP response headers. |
java.lang.String |
getStatusText()
Return the HTTP status text. |
| Methods inherited from class org.springframework.core.NestedRuntimeException |
|---|
contains, getMessage, getMostSpecificCause, getRootCause |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, 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 UnknownHttpStatusCodeException(int rawStatusCode,
java.lang.String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
java.nio.charset.Charset responseCharset)
HttpStatusCodeException based on an
HttpStatus, status text, and response body content.
rawStatusCode - the raw status code valuestatusText - the status textresponseHeaders - the response headers, may be nullresponseBody - the response body content, may be nullresponseCharset - the response body charset, may be null| Method Detail |
|---|
public int getRawStatusCode()
public java.lang.String getStatusText()
public HttpHeaders getResponseHeaders()
public byte[] getResponseBodyAsByteArray()
public java.lang.String getResponseBodyAsString()
|
Spring for Android | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||