* Copyright (C) 2025-2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef DIA_ERROR_CODE_H
#define DIA_ERROR_CODE_H
namespace OHOS::Security::DIA {
enum DIAErrCode {
DIA_SUCCESS = 0,
DIA_FAILURE = 1,
DIA_ERR_CONFIG_SIPRAM = 1000,
DIA_ERR_CONFIG_CALLBACK = 1001,
DIA_ERR_DATA_ILEGEL = 1002,
DIA_ERR_INVLAID_PARAM = 1003,
DIA_ERR_PERMISSION_DENIED = 1004,
DIA_ERR_MALLOC = 1005,
DIA_ERR_IH_ABNORMAL_DATA = 1100,
DIA_ERR_IH_DETECT = 1101,
DIA_ERR_IH_GET_RESULT = 1102,
DIA_ERR_IH_FAILURE = 1103,
DIA_ERR_IH_ANONYMIZE = 1104,
DIA_ERR_IH_TEXTIDENTIFY = 1105,
DIA_ERR_IH_DIFFERENTIAL_PRIVACY = 1106,
DIA_ERR_IH_INPUT_SIZE = 1107,
DIA_ERR_IH_INPUT_LEN = 1108,
DIA_ERR_IH_DP_ANONYMIZE = 1109,
};
}
#endif