public class ErrorCode extends MessageAttribute
MessageAttributeInterface.MessageAttributeTypeCHANGEDADDRESS, CHANGEREQUEST, DUMMY, ERRORCODE, MAPPEDADDRESS, MESSAGEINTEGRITY, PASSWORD, REFLECTEDFROM, RESPONSEADDRESS, SOURCEADDRESS, UNKNOWNATTRIBUTE, USERNAME| Constructor and Description |
|---|
ErrorCode() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
String |
getReason() |
int |
getResponseCode() |
static ErrorCode |
parse(byte[] data) |
void |
setResponseCode(int responseCode) |
getLength, getType, intToType, parseCommonHeader, setType, typeToIntegerpublic void setResponseCode(int responseCode)
throws MessageAttributeException
MessageAttributeExceptionpublic int getResponseCode()
public String getReason()
public byte[] getBytes()
throws UtilityException
getBytes in class MessageAttributeUtilityExceptionpublic static ErrorCode parse(byte[] data) throws MessageAttributeParsingException
MessageAttributeParsingException