Define error numbers

This commit is contained in:
jiangjianfeng 2021-09-17 11:57:07 +08:00 committed by Zongmin.Gu
parent 33d074e280
commit 6a0435d9b6

@ -0,0 +1,8 @@
/// This file defines error number to indicate different errors
pub static FILE_NOT_EXISTS_ERROR: i32 = -1;
pub static COPY_FILE_ERROR: i32 = -2;
pub static INVALID_BOM_FILE_ERROR: i32 = -3;
pub static CREATE_DIR_ERROR: i32 = -4;
pub static CREATE_SYMLINK_ERROR: i32 = -5;
pub static COPY_DIR_ERROR: i32 = -6;
pub static INCORRECT_HASH_ERROR: i32 = -7;