public class HttpError extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpError.CodedMessage
Represents an error code paired with its appropriate error message and exception arguments.
|
| Constructor and Description |
|---|
HttpError(List<HttpError.CodedMessage> errors,
org.springframework.http.HttpStatus httpStatus)
Constructing a HTTP error instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<HttpError.CodedMessage> |
getErrors() |
String |
getFingerprint() |
org.springframework.http.HttpStatus |
getHttpStatus() |
Throwable |
getOriginalException() |
Throwable |
getRefinedException() |
Object |
getRequest()
Returns the current and probably failed HTTP request.
|
void |
setFingerprint(String fingerprint) |
void |
setOriginalException(Throwable originalException) |
void |
setRefinedException(Throwable refinedException) |
void |
setRequest(Object request) |
String |
toString() |
public HttpError(List<HttpError.CodedMessage> errors, org.springframework.http.HttpStatus httpStatus)
errors - Collection of codes/messages combinations.httpStatus - The expected status code.public List<HttpError.CodedMessage> getErrors()
errorspublic Object getRequest()
WebRequest for Servlet requests
or ServerRequest for reactive
stack requests.public Throwable getOriginalException()
public void setOriginalException(Throwable originalException)
originalException - originalException.public Throwable getRefinedException()
public void setRefinedException(Throwable refinedException)
refinedException - refinedException.public org.springframework.http.HttpStatus getHttpStatus()
httpStatuspublic String getFingerprint()
fingerprintpublic void setFingerprint(String fingerprint)
fingerprint - fingerprint.Copyright © 2019. All rights reserved.