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 ErrorMessageEMPTY-
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 booleanequals(Object obj)StringgetErrorCode()StringgetErrorMessage()ErrorTypegetErrorType()List<Link>getLink()inthashCode()voidsetLink(List<Link> links)StringtoString()ErrorMessagewithMessage(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)
-
-