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