public class BasicResponse extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<ApiError> |
errors |
protected String |
message |
protected ResponseStatus |
status |
protected Long |
total |
protected String |
type |
| Constructor and Description |
|---|
BasicResponse() |
BasicResponse(BusinessLogicException ex) |
BasicResponse(javax.validation.ConstraintViolationException ex) |
| Modifier and Type | Method and Description |
|---|---|
ApiError |
getError(String field) |
List<ApiError> |
getErrors() |
String |
getMessage() |
ResponseStatus |
getStatus() |
Long |
getTotal() |
String |
getType() |
void |
setErrors(List<ApiError> errors) |
void |
setStatus(ResponseStatus status) |
void |
setTotal(Long total) |
void |
setType(String type) |
protected ResponseStatus status
protected String type
protected String message
protected Long total
public BasicResponse()
public BasicResponse(javax.validation.ConstraintViolationException ex)
public BasicResponse(BusinessLogicException ex)
public ResponseStatus getStatus()
public void setStatus(ResponseStatus status)
public String getType()
public void setType(String type)
public String getMessage()
public Long getTotal()
public void setTotal(Long total)
Copyright © 2016 LeanIX GmbH. All rights reserved.