public class ErrorDetail extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ErrorDetail.ErrorType
Every failure must be classified into one of the following failure types
|
static class |
ErrorDetail.RequestType
The following request types are recognised
|
| Constructor and Description |
|---|
ErrorDetail() |
| Modifier and Type | Method and Description |
|---|---|
ErrorDetail |
detailMessage(Object detailMessage)
A free form detailed description of a particular failure condition may optionally be supplied
|
boolean |
equals(Object o) |
ErrorDetail |
errorMessage(String errorMessage)
A short description of the error
|
ErrorDetail |
errorType(ErrorDetail.ErrorType errorType)
The type of error that occurred
|
Object |
getDetailMessage() |
String |
getErrorMessage() |
ErrorDetail.ErrorType |
getErrorType() |
String |
getId() |
String |
getOriginalId() |
ErrorDetail.RequestType |
getRequestType() |
int |
hashCode() |
ErrorDetail |
id(String id)
The UUID of the message for which error occurred.
|
ErrorDetail |
originalId(String originalId)
The UUID of the original request message in the case of an error occurring for an advice message.
|
ErrorDetail |
requestType(ErrorDetail.RequestType requestType)
The type of request for which the error.
|
void |
setDetailMessage(Object detailMessage) |
void |
setErrorMessage(String errorMessage) |
void |
setErrorType(ErrorDetail.ErrorType errorType) |
void |
setId(String id) |
void |
setOriginalId(String originalId) |
void |
setRequestType(ErrorDetail.RequestType requestType) |
String |
toString() |
public ErrorDetail errorType(ErrorDetail.ErrorType errorType)
@NotNull public ErrorDetail.ErrorType getErrorType()
public void setErrorType(ErrorDetail.ErrorType errorType)
public ErrorDetail errorMessage(String errorMessage)
@NotNull @Length(max=20) public String getErrorMessage()
public void setErrorMessage(String errorMessage)
public ErrorDetail requestType(ErrorDetail.RequestType requestType)
@NotNull public ErrorDetail.RequestType getRequestType()
public void setRequestType(ErrorDetail.RequestType requestType)
public ErrorDetail id(String id)
@NotNull public String getId()
public void setId(String id)
public ErrorDetail originalId(String originalId)
public String getOriginalId()
public void setOriginalId(String originalId)
public ErrorDetail detailMessage(Object detailMessage)
public Object getDetailMessage()
public void setDetailMessage(Object detailMessage)
Copyright © 2018. All rights reserved.