public class ErrorCode extends MessageAttribute
MessageAttributeInterface.MessageAttributeType
CHANGEDADDRESS, 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, typeToInteger
public void setResponseCode(int responseCode) throws MessageAttributeException
MessageAttributeException
public int getResponseCode()
public String getReason()
public byte[] getBytes() throws UtilityException
getBytes
in class MessageAttribute
UtilityException
public static ErrorCode parse(byte[] data) throws MessageAttributeParsingException
MessageAttributeParsingException