admin
2021-08-27 8fee151ffae0c3818694b7318583814bf92663e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.yeshi.buwan.exception.video;
 
/**
 * 爱奇艺搜索引擎异常
 */
public class IqiyiVideoSolrException extends Exception {
 
 
    //专辑没保存
    public final static int CODE_ALBUM_NOT_SAVE = 1;
 
    //专辑不存在
    public final static int CODE_ALBUM_NOT_EXIST = 2;
 
    //专辑未添加到视频
    public final static int CODE_ALBUM_NOT_ADD_TO_VIDEO = 10;
 
    //视频未添加到专辑搜索映射
    public final static int CODE_VIDEO_NOT_ADD_TO_SOLR_ALBUM = 20;
 
    //视频尚未同步到搜索引擎
    public final static int CODE_VIDEO_NOT_SYNC_TO_SOLR = 30;
 
 
    private int code;
    private String msg;
 
    public IqiyiVideoSolrException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
 
    public IqiyiVideoSolrException(String msg) {
        this.msg = msg;
    }
 
    public String getMsg() {
        return msg;
    }
 
    public int getCode() {
        return code;
    }
 
    @Override
    public String getMessage() {
        return msg;
    }
}