Netty WIP
Implementing ByteBuf backed In/OutPacket first in a separate branch
This commit is contained in:
14
src/main/java/net/netty/InvalidPacketHeaderException.java
Normal file
14
src/main/java/net/netty/InvalidPacketHeaderException.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package net.netty;
|
||||
|
||||
public class InvalidPacketHeaderException extends RuntimeException {
|
||||
private final int header;
|
||||
|
||||
public InvalidPacketHeaderException(String message, int header) {
|
||||
super(message);
|
||||
this.header = header;
|
||||
}
|
||||
|
||||
public int getHeader() {
|
||||
return header;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user