public class ErrorDTO extends Object
| Constructor and Description |
|---|
ErrorDTO() |
| Modifier and Type | Method and Description |
|---|---|
ErrorDTO |
code(Long code) |
ErrorDTO |
description(String description)
A detail description about the error message.
|
boolean |
equals(Object o) |
ErrorDTO |
error(List<ErrorListItemDTO> error)
If there are more than one error list them out.
|
@NotNull Long |
getCode() |
String |
getDescription() |
@Valid List<ErrorListItemDTO> |
getError() |
@NotNull String |
getMessage() |
String |
getMoreInfo() |
int |
hashCode() |
ErrorDTO |
message(String message)
Error message.
|
ErrorDTO |
moreInfo(String moreInfo)
Preferably an url with more details about the error.
|
void |
setCode(Long code) |
void |
setDescription(String description) |
void |
setError(List<ErrorListItemDTO> error) |
void |
setMessage(String message) |
void |
setMoreInfo(String moreInfo) |
String |
toString() |
@NotNull public @NotNull Long getCode()
public void setCode(Long code)
@NotNull public @NotNull String getMessage()
public void setMessage(String message)
public ErrorDTO description(String description)
public String getDescription()
public void setDescription(String description)
public ErrorDTO moreInfo(String moreInfo)
public String getMoreInfo()
public void setMoreInfo(String moreInfo)
public ErrorDTO error(List<ErrorListItemDTO> error)
@Valid public @Valid List<ErrorListItemDTO> getError()
public void setError(List<ErrorListItemDTO> error)
Copyright © 2022 WSO2. All rights reserved.