初始版本

This commit is contained in:
2025-07-11 21:19:23 +08:00
parent 4ce2f90e91
commit fc0f5b9cad
917 changed files with 42712 additions and 161 deletions

View File

@ -0,0 +1,46 @@
package com.qidian.baseble.exception;
import com.qidian.baseble.common.BleExceptionCode;
import java.io.Serializable;
/**
* @Description: BLE异常基类
* @author: <a href="http://www.xiaoyaoyou1212.com">DAWI</a>
* @date: 16/8/14 10:28.
*/
public class BleException implements Serializable {
private BleExceptionCode code;
private String description;
public BleException(BleExceptionCode code, String description) {
this.code = code;
this.description = description;
}
public BleExceptionCode getCode() {
return code;
}
public BleException setCode(BleExceptionCode code) {
this.code = code;
return this;
}
public String getDescription() {
return description;
}
public BleException setDescription(String description) {
this.description = description;
return this;
}
@Override
public String toString() {
return "BleException{" +
"code=" + code +
", description='" + description + '\'' +
'}';
}
}