Package com.seeshiontech.vesdk
Enum ErrorCode
- java.lang.Object
-
- java.lang.Enum<ErrorCode>
-
- com.seeshiontech.vesdk.ErrorCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERR-1, "fail"FFMPEG_RUN_FAIL20010, "ffmpeg command run fail, check ffmpeg run env"FORK_ERROR20040, "fork render process error, check render log"INVALID_ASSETS_DATA20054, "invalid assets file data"INVALID_SNAPSHOTS_DATA20053, "invalid snapshots data"INVALID_SUB_IMGS_DATA20051, "invalid sub imgs data"INVALID_SUB_TEXTS_DATA20052, "invalid sub texts data"INVALID_WATERMARKS_DATA20050, "invalid watermarks data"LICENSE_INVALID20030, "invalid license"LICENSE_NOT_FULLY_SUPPORT20031, "license not fullly support render task"OK1, "ok"TEMPLATE_INVALID20002, "template invalid, check template file"UNKOWN-2, "unkonwn"VIDEO_ENCODE_FAIL20021, "video encode error"VIDEO_ENCODER_CREATE_FAIL20020, "video encoder create error"
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorCodegetEnum(int code)return ErrorCode enum with specified int code, if not exist, return UNKOWNintgetErrCode()java.lang.StringgetErrMsg()static ErrorCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final ErrorCode OK
1, "ok"
-
ERR
public static final ErrorCode ERR
-1, "fail"
-
UNKOWN
public static final ErrorCode UNKOWN
-2, "unkonwn"
-
TEMPLATE_INVALID
public static final ErrorCode TEMPLATE_INVALID
20002, "template invalid, check template file"
-
FFMPEG_RUN_FAIL
public static final ErrorCode FFMPEG_RUN_FAIL
20010, "ffmpeg command run fail, check ffmpeg run env"
-
VIDEO_ENCODER_CREATE_FAIL
public static final ErrorCode VIDEO_ENCODER_CREATE_FAIL
20020, "video encoder create error"
-
VIDEO_ENCODE_FAIL
public static final ErrorCode VIDEO_ENCODE_FAIL
20021, "video encode error"
-
LICENSE_INVALID
public static final ErrorCode LICENSE_INVALID
20030, "invalid license"
-
LICENSE_NOT_FULLY_SUPPORT
public static final ErrorCode LICENSE_NOT_FULLY_SUPPORT
20031, "license not fullly support render task"
-
FORK_ERROR
public static final ErrorCode FORK_ERROR
20040, "fork render process error, check render log"
-
INVALID_WATERMARKS_DATA
public static final ErrorCode INVALID_WATERMARKS_DATA
20050, "invalid watermarks data"
-
INVALID_SUB_IMGS_DATA
public static final ErrorCode INVALID_SUB_IMGS_DATA
20051, "invalid sub imgs data"
-
INVALID_SUB_TEXTS_DATA
public static final ErrorCode INVALID_SUB_TEXTS_DATA
20052, "invalid sub texts data"
-
INVALID_SNAPSHOTS_DATA
public static final ErrorCode INVALID_SNAPSHOTS_DATA
20053, "invalid snapshots data"
-
INVALID_ASSETS_DATA
public static final ErrorCode INVALID_ASSETS_DATA
20054, "invalid assets file data"
-
-
Method Detail
-
values
public static ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ErrorCode c : ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getErrCode
public int getErrCode()
-
getErrMsg
public java.lang.String getErrMsg()
-
getEnum
public static ErrorCode getEnum(int code)
return ErrorCode enum with specified int code, if not exist, return UNKOWN- Parameters:
code-- Returns:
- ErrorCode
-
-