100600bfbSopenharmony_ci/*
200600bfbSopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd.
300600bfbSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
400600bfbSopenharmony_ci * you may not use this file except in compliance with the License.
500600bfbSopenharmony_ci * You may obtain a copy of the License at
600600bfbSopenharmony_ci *
700600bfbSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
800600bfbSopenharmony_ci *
900600bfbSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1000600bfbSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1100600bfbSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1200600bfbSopenharmony_ci * See the License for the specific language governing permissions and
1300600bfbSopenharmony_ci * limitations under the License.
1400600bfbSopenharmony_ci */
1500600bfbSopenharmony_ci#ifndef HIDUMPER_UTILS_DUMP_ERRORS_H
1600600bfbSopenharmony_ci#define HIDUMPER_UTILS_DUMP_ERRORS_H
1700600bfbSopenharmony_ci#include <errors.h>
1800600bfbSopenharmony_cinamespace OHOS {
1900600bfbSopenharmony_cinamespace HiviewDFX {
2000600bfbSopenharmony_cienum DumperModuleType {
2100600bfbSopenharmony_ci    DUMPER_MODULE_TYPE_SERVICE = 0,
2200600bfbSopenharmony_ci    DUMPER_MODULE_TYPE_KIT = 1
2300600bfbSopenharmony_ci};
2400600bfbSopenharmony_ciconstexpr ErrCode DUMPER_SERVICE_ERR_OFFSET = ErrCodeOffset(SUBSYS_POWERMNG, DUMPER_MODULE_TYPE_SERVICE);
2500600bfbSopenharmony_cienum DumperError {
2600600bfbSopenharmony_ci    ERROR_WRITE_PARCEL = DUMPER_SERVICE_ERR_OFFSET,
2700600bfbSopenharmony_ci    ERROR_READ_PARCEL,
2800600bfbSopenharmony_ci    ERROR_GET_SYSTEM_ABILITY_MANAGER,
2900600bfbSopenharmony_ci    ERROR_GET_DUMPER_SERVICE,
3000600bfbSopenharmony_ci    ERROR_ADD_DEATH_RECIPIENT
3100600bfbSopenharmony_ci};
3200600bfbSopenharmony_ci} // namespace HiviewDFX
3300600bfbSopenharmony_ci} // namespace OHOS
3400600bfbSopenharmony_ci#endif // HIDUMPER_UTILS_DUMP_ERRORS_H