error handle to all: EncoderException

This commit is contained in:
free will committed 2021-03-18 11:22:49 +08:00
1 parent 5fc080ca6c
commit 8cf6ed24c9
34 files changed
+700 -233

No files matched your search

+5 -2
View File
@@ -1,5 +1,8 @@
package packet;
import encoding.EncoderException;
import encoding.VlIntException;
/*
* @Author: Wang Feng
* @Description: 定义了一个网络包应该实现哪些和分区交互的方法
@@ -12,11 +15,11 @@ public interface InteractWithField {
* 将包的属性填充到网络包的四个分区当中
* @return
*/
boolean fillDataToFields();
boolean fillDataToFields() throws EncoderException;
/**
* 从网络包的四个分区当中提取出特定网络包的相关属性
* @return
*/
boolean extraDataFromFields();
boolean extraDataFromFields() throws VlIntException;
}