Skip to content

Commit c8d3690

Browse files
author
Javen
committed
Remove unused error code definition.
1 parent 3a99dc3 commit c8d3690

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

src/cn/jpush/api/common/ErrorCodeEnum.java

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,13 @@
11
package cn.jpush.api.common;
22

33
public enum ErrorCodeEnum {
4-
//发送成功
5-
NOERROR(0),
6-
7-
//系统内部错误
8-
SystemError(10),
9-
10-
//不支持GET请求
11-
NotSupportGetMethod(1001),
12-
13-
//缺少必须参数
14-
MissingRequiredParameters(1002),
154

165
//参数值不合法
176
InvalidParameter(1003),
187

198
//验证失败
209
VerificationFailed(1004),
2110

22-
//消息体太大
23-
DataTooBig(1005),
24-
25-
//IMEI不合法
26-
InvalidIMEI(1007),
27-
2811
//appkey不合法
2912
InvalidAppKey(1008),
3013

@@ -33,21 +16,11 @@ public enum ErrorCodeEnum {
3316

3417
//没有满足条件的推送目标
3518
NoTarget(1011),
36-
37-
//IOS不支持自定义消息
38-
CustomMessgaeNotSupportIOS(1012),
39-
40-
//connection timeout
41-
CONNECTIONTIMEOUT(12),
42-
43-
//Connection refused
44-
CONNECTIONREFUSED(13),
45-
46-
UnknownHostException(14),
47-
19+
4820
//Unknown exception
4921
UnknownException(-1);
5022

23+
5124
private final int value;
5225
private ErrorCodeEnum(final int value) {
5326
this.value = value;

0 commit comments

Comments
 (0)