Class ErrorDTO
java.lang.Object
org.wso2.am.integration.clients.gateway.api.v2.dto.ErrorDTO
ErrorDTO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddErrorItem(ErrorListItemDTO errorItem) description(String description) booleanerror(List<ErrorListItemDTO> error) getCode()Error codeA detail description about the error message.getError()If there are more than one error list them out.Error message.Preferably an url with more details about the error.inthashCode()voidvoidsetDescription(String description) voidsetError(List<ErrorListItemDTO> error) voidsetMessage(String message) voidsetMoreInfo(String moreInfo) toString()
-
Constructor Details
-
ErrorDTO
public ErrorDTO()
-
-
Method Details
-
code
-
getCode
Error code- Returns:
- code
-
setCode
-
message
-
getMessage
Error message.- Returns:
- message
-
setMessage
-
description
-
getDescription
A detail description about the error message.- Returns:
- description
-
setDescription
-
moreInfo
-
getMoreInfo
Preferably an url with more details about the error.- Returns:
- moreInfo
-
setMoreInfo
-
error
-
addErrorItem
-
getError
If there are more than one error list them out. For example, list out validation errors by each field.- Returns:
- error
-
setError
-
equals
-
hashCode
public int hashCode() -
toString
-