public interface ErrorResponse
Modifier and Type | Method and Description |
---|---|
List<? extends SphereError> |
getErrors() |
String |
getMessage() |
Integer |
getStatusCode() |
default boolean |
hasErrorCode(String errorCode) |
static ErrorResponse |
of(Integer statusCode,
String message,
List<? extends SphereError> errors) |
static com.fasterxml.jackson.core.type.TypeReference<ErrorResponse> |
typeReference()
Creates a container which contains the full Java type information to deserialize this class from JSON.
|
Integer getStatusCode()
String getMessage()
List<? extends SphereError> getErrors()
default boolean hasErrorCode(String errorCode)
static com.fasterxml.jackson.core.type.TypeReference<ErrorResponse> typeReference()
static ErrorResponse of(Integer statusCode, String message, List<? extends SphereError> errors)