public final class ErrorCode
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
DATA_LOAD_FAILED
数据加载失败。
|
static int |
FILE_NOT_FOUND
文件未找到。
|
static int |
GET_URL_FAILED
获取播放链接失败。
|
static int |
NETWORK_ERROR
网络错误。
|
static int |
NO_ERROR
没有发生任何错误(默认值)。
|
static int |
ONLY_WIFI_NETWORK
仅允许 Wifi 网络下联网。
|
static int |
OUT_OF_MEMORY
内存不足。
|
static int |
PLAYER_ERROR
播放器错误。
|
static int |
UNKNOWN_ERROR
未知错误。
|
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
getErrorMessage(android.content.Context context,
int errorCode)
根据错误码获取对应的错误信息。
|
public static final int NO_ERROR
public static final int ONLY_WIFI_NETWORK
public static final int PLAYER_ERROR
public static final int NETWORK_ERROR
public static final int FILE_NOT_FOUND
public static final int DATA_LOAD_FAILED
public static final int GET_URL_FAILED
public static final int OUT_OF_MEMORY
public static final int UNKNOWN_ERROR