public class HttpStatusException extends HttpException
Constructor and Description |
---|
HttpStatusException(HttpStatus status,
java.lang.Object body) |
HttpStatusException(HttpStatus status,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.Object> |
getBody() |
HttpStatus |
getStatus() |
public HttpStatusException(HttpStatus status, java.lang.String message)
status
- The HttpStatus
message
- The messagepublic HttpStatusException(HttpStatus status, java.lang.Object body)
status
- The HttpStatus
body
- The arbitrary object to returnpublic HttpStatus getStatus()
HttpStatus
public java.util.Optional<java.lang.Object> getBody()