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, 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 boolean
equals(java.lang.Object obj)
java.lang.String
getErrorCode()
java.lang.String
getErrorMessage()
ErrorType
getErrorType()
java.util.List<Link>
getLink()
int
hashCode()
void
setLink(java.util.List<Link> links)
java.lang.String
toString()
ErrorMessage
withMessage(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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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)
-
-