public class ErrorMessage extends Representation
Modifier and Type | Field and Description |
---|---|
static ErrorMessage |
EMPTY |
links
Constructor and Description |
---|
ErrorMessage(ErrorType errorType,
String errorMessage,
Link... linker) |
ErrorMessage(ErrorType errorType,
String errorCode,
String errorMessage,
Link... linker) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getErrorCode() |
String |
getErrorMessage() |
ErrorType |
getErrorType() |
List<Link> |
getLink() |
int |
hashCode() |
void |
setLink(List<Link> links) |
String |
toString() |
ErrorMessage |
withMessage(String otherErrorMessage) |
addLink, getLinkByRelationName
public static final ErrorMessage EMPTY
public String getErrorMessage()
public String getErrorCode()
public ErrorType getErrorType()
public ErrorMessage withMessage(String otherErrorMessage)
Copyright © 2018 Digipost. All rights reserved.