public enum ComponentErrorType extends java.lang.Enum<ComponentErrorType>
枚举常量和说明 |
---|
TypeInputImageEmpty
没有找到输入的图片
|
TypeNotFoundSDCard
没有插入SD卡
|
TypeStorageSpace
存储空间不足
|
TypeUnknow
位置错误
|
TypeUnsupportCamera
不支持摄像头
|
限定符和类型 | 方法和说明 |
---|---|
TuSdkError |
getError(java.lang.Object from)
获取错误对象
|
int |
getErrorCode()
错误代码
|
java.lang.String |
getMsg()
错误信息
|
static ComponentErrorType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ComponentErrorType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ComponentErrorType TypeUnknow
public static final ComponentErrorType TypeInputImageEmpty
public static final ComponentErrorType TypeUnsupportCamera
public static final ComponentErrorType TypeStorageSpace
public static final ComponentErrorType TypeNotFoundSDCard
public static ComponentErrorType[] values()
for (ComponentErrorType c : ComponentErrorType.values()) System.out.println(c);
public static ComponentErrorType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int getErrorCode()
public java.lang.String getMsg()
public TuSdkError getError(java.lang.Object from)
from
- 错误来源对象