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, java.lang.String errorCode, java.lang.String errorMessage, Link... linker)ErrorMessage(ErrorType errorType, java.lang.String errorMessage, Link... linker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetErrorCode()java.lang.StringgetErrorMessage()ErrorTypegetErrorType()java.util.List<Link>getLink()inthashCode()voidsetLink(java.util.List<Link> links)java.lang.StringtoString()ErrorMessagewithMessage(java.lang.String otherErrorMessage)-
Methods inherited from class no.digipost.api.client.representations.Representation
addLink, getLinkByRelationName
-
-
-
-
Field Detail
-
EMPTY
public static final ErrorMessage EMPTY
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getErrorMessage
public java.lang.String getErrorMessage()
-
getErrorCode
public java.lang.String getErrorCode()
-
getErrorType
public ErrorType getErrorType()
-
getLink
public java.util.List<Link> getLink()
-
setLink
public void setLink(java.util.List<Link> links)
-
withMessage
public ErrorMessage withMessage(java.lang.String otherErrorMessage)
-
-