public abstract class HttpStatusException extends RuntimeException
Modifier and Type | Field and Description |
---|---|
protected static com.fasterxml.jackson.databind.ObjectMapper |
OBJECT_MAPPER |
protected int |
status |
Constructor and Description |
---|
HttpStatusException(int status,
String message) |
HttpStatusException(int status,
String message,
Throwable cause,
Supplier<String> verboseMessageSupplier) |
Modifier and Type | Method and Description |
---|---|
protected static String |
formatExceptionCause(Throwable e) |
org.apache.commons.lang3.tuple.Pair<Integer,com.fasterxml.jackson.databind.JsonNode> |
getErrorResponse()
Get a response detailing the error that occurred.
|
int |
getStatus() |
org.apache.commons.lang3.tuple.Pair<Integer,com.fasterxml.jackson.databind.JsonNode> |
getVerboseErrorResponse()
Get a verbose response detailing the error that occurred.
|
String |
getVerboseMessage() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
protected static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
protected final int status
public HttpStatusException(int status, String message)
public org.apache.commons.lang3.tuple.Pair<Integer,com.fasterxml.jackson.databind.JsonNode> getErrorResponse()
public org.apache.commons.lang3.tuple.Pair<Integer,com.fasterxml.jackson.databind.JsonNode> getVerboseErrorResponse()
public String getVerboseMessage()
public int getStatus()
Copyright © 2015–2021 Yahoo! Inc.. All rights reserved.