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;
|
}
|
}
|