public class ErrorResponseResource extends Object
Constructor and Description |
---|
ErrorResponseResource() |
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Returns the request content type.
|
String |
getErrorMessage()
Returns the error message (
Throwable#getMessage() ) |
List<ValidationErrorResource> |
getErrors()
Returns the validation errors.
|
String |
getMethod()
Returns the HTTP method.
|
String |
getQuery()
Returns the query string.
|
int |
getStatusCode()
Returns the response status code.
|
String |
getStatusMessage()
Returns the response status message.
|
String |
getUri()
Returns the request URI.
|
void |
setContentType(String contentType)
Sets the request content type.
|
void |
setErrorMessage(String errorMessage)
Sets the error message.
|
void |
setErrors(List<ValidationErrorResource> errors)
Sets the validation errors.
|
void |
setMethod(String method)
Sets the HTTP method.
|
void |
setQuery(String query)
Sets the query string.
|
void |
setStatusCode(int statusCode)
Sets the response status code.
|
void |
setStatusMessage(String statusMessage)
Sets the response status message.
|
void |
setUri(String uri)
Sets the request URI.
|
String |
toString() |
public String getMethod()
public void setMethod(String method)
method
- the HTTP methodpublic String getUri()
public void setUri(String uri)
uri
- the request URIpublic String getQuery()
public void setQuery(String query)
query
- the query stringpublic String getContentType()
public void setContentType(String contentType)
contentType
- the content type.public int getStatusCode()
public void setStatusCode(int statusCode)
statusCode
- the response status code.public String getStatusMessage()
public void setStatusMessage(String statusMessage)
statusMessage
- the response status messagepublic String getErrorMessage()
Throwable#getMessage()
)public void setErrorMessage(String errorMessage)
errorMessage
- the error message.public List<ValidationErrorResource> getErrors()
public void setErrors(List<ValidationErrorResource> errors)
errors
- the validation errors