Initial commit
This commit is contained in:
24
sources/com/ubtrobot/jimu/connection/RequestException.java
Normal file
24
sources/com/ubtrobot/jimu/connection/RequestException.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.ubtrobot.jimu.connection;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class RequestException extends Exception {
|
||||
public static final int ERR_CODE_BT_NOT_CONNECTED = -1;
|
||||
public static final int ERR_CODE_CMD_INVALID = -4;
|
||||
public static final int ERR_CODE_TIMEOUT = -3;
|
||||
public static final String ERR_MSG_CMD_TIMEOUT = "Send command timeout";
|
||||
public static final String ERR_MSG_NOT_CONNECT = "Bluetooth not connected";
|
||||
private final int mCode;
|
||||
|
||||
public RequestException(int i, String str) {
|
||||
this(i, str, null);
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return this.mCode;
|
||||
}
|
||||
|
||||
public RequestException(int i, String str, Throwable th) {
|
||||
super(str, th);
|
||||
this.mCode = i;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user