From 6a0435d9b6bedaf30292d1fa4ff53fe1ab813822 Mon Sep 17 00:00:00 2001 From: jiangjianfeng Date: Fri, 17 Sep 2021 11:57:07 +0800 Subject: [PATCH] Define error numbers --- tools/copy_bom/src/error.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/copy_bom/src/error.rs diff --git a/tools/copy_bom/src/error.rs b/tools/copy_bom/src/error.rs new file mode 100644 index 00000000..35ac1e8d --- /dev/null +++ b/tools/copy_bom/src/error.rs @@ -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;