public class HttpStatusException extends HttpException
Constructor and Description |
---|
HttpStatusException(HttpStatus status,
Object body) |
HttpStatusException(HttpStatus status,
String message) |
Modifier and Type | Method and Description |
---|---|
Optional<Object> |
getBody() |
HttpStatus |
getStatus() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpStatusException(HttpStatus status, String message)
status
- The HttpStatus
message
- The messagepublic HttpStatusException(HttpStatus status, Object body)
status
- The HttpStatus
body
- The arbitrary object to returnpublic HttpStatus getStatus()
HttpStatus