public class ErrorPacket extends Packet
Modifier and Type | Field and Description |
---|---|
private int |
errmsgLen |
private int |
errorCode |
private String |
message |
CODE_MASK, encodedBody, encodingBuffer, length
Modifier | Constructor and Description |
---|---|
private |
ErrorPacket() |
Modifier and Type | Method and Description |
---|---|
static ErrorPacket |
create() |
void |
decodeBody(ByteBuffer buffer)
Decodes the body of this package from a byte buffer
positioned at the first byte of the package.
|
void |
encodeBody(ByteBuffer buffer)
Encodes the body of this package onto the given buffer at the current position.
|
int |
getCode()
Returns the code of this package
|
int |
getErrorCode() |
String |
toString() |
decode, encode, getChannel, hasChannelId, patchChannelId, setChannel
allocateAndEncode, codeDecodedHook, decodeAndDecompressBody, encode, encodeAndCompressBody, getLength, getTimestamp, grantEncodingBuffer, grantEncodingBuffer, isEncoded, setCompressionLimit, setCompressionType, setEncodedBody, setTimestamp
private int errorCode
private int errmsgLen
private String message
public static ErrorPacket create()
public int getCode()
BasicPacket
getCode
in class BasicPacket
public void decodeBody(ByteBuffer buffer)
BasicPacket
decodeBody
in class BasicPacket
public int getErrorCode()
public void encodeBody(ByteBuffer buffer)
BasicPacket
encodeBody
in class BasicPacket
Copyright © 2018. All rights reserved.