Package sk.antons.sbutils.rest
Class RestTemplateClient.HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
sk.antons.sbutils.rest.RestTemplateClient.HttpException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- RestTemplateClient
Exception thrown if an error ocures od ResponseValidator returns false.
It provides exception which was received or data of response if
ResponseValidator returns false.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpException(Throwable throwable) HttpException(org.springframework.http.ResponseEntity entity) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpException
-
HttpException
public HttpException(org.springframework.http.ResponseEntity entity)
-
-
Method Details
-
url
-
method
-
status
-
getHeaders
public org.springframework.http.HttpHeaders getHeaders() -
getStatus
public org.springframework.http.HttpStatus getStatus() -
getBody
-
getError
-
getUrl
-
getMethod
public org.springframework.http.HttpMethod getMethod() -
getMessage
- Overrides:
getMessagein classThrowable
-