|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.springframework.core.NestedRuntimeException org.springframework.web.client.RestClientException org.springframework.web.client.HttpStatusCodeException
public abstract class HttpStatusCodeException
Abstract base class for exceptions based on an HttpStatus
.
Constructor Summary | |
---|---|
protected |
HttpStatusCodeException(HttpStatus statusCode)
Construct a new instance of HttpStatusCodeException based on a HttpStatus . |
protected |
HttpStatusCodeException(HttpStatus statusCode,
String statusText)
Construct a new instance of HttpStatusCodeException based on a HttpStatus and status text. |
Method Summary | |
---|---|
HttpStatus |
getStatusCode()
Returns the HTTP status code. |
String |
getStatusText()
Returns 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 |
---|
protected HttpStatusCodeException(HttpStatus statusCode)
HttpStatusCodeException
based on a HttpStatus
.
statusCode
- the status codeprotected HttpStatusCodeException(HttpStatus statusCode, String statusText)
HttpStatusCodeException
based on a HttpStatus
and status text.
statusCode
- the status codestatusText
- the status textMethod Detail |
---|
public HttpStatus getStatusCode()
public String getStatusText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |