Class ErrorMessage
- java.lang.Object
-
- no.digipost.api.client.representations.Representation
-
- no.digipost.api.client.representations.ErrorMessage
-
public class ErrorMessage extends Representation
-
-
Field Summary
Fields Modifier and Type Field Description static ErrorMessage
EMPTY
-
Fields inherited from class no.digipost.api.client.representations.Representation
links
-
-
Constructor Summary
Constructors Constructor Description ErrorMessage(ErrorType errorType, String errorCode, String errorMessage, Link... linker)
ErrorMessage(ErrorType errorType, String errorMessage, Link... linker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class no.digipost.api.client.representations.Representation
addLink, getLinkByRelationName
-
-
-
-
Field Detail
-
EMPTY
public static final ErrorMessage EMPTY
-
-
Method Detail
-
getErrorMessage
public String getErrorMessage()
-
getErrorCode
public String getErrorCode()
-
getErrorType
public ErrorType getErrorType()
-
withMessage
public ErrorMessage withMessage(String otherErrorMessage)
-
-