/* * Copyright (c) 2021 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 OHOS_AAFWK_DATAOBS_MANAGER_ERRORS_H #define OHOS_AAFWK_DATAOBS_MANAGER_ERRORS_H #include "errors.h" namespace OHOS { namespace AAFwk { enum { /** * Module type: Dataobs Manager Service side */ DATAOBS_MODULE_TYPE_SERVICE = 2, }; // offset of aafwk error, only be used in this file. constexpr ErrCode AAFWK_DATAOBS_SERVICE_ERR_OFFSET = ErrCodeOffset(SUBSYS_AAFWK, DATAOBS_MODULE_TYPE_SERVICE); enum { /** * Result(2228224) */ DATAOBS_SERVICE_NOT_CONNECTED = AAFWK_DATAOBS_SERVICE_ERR_OFFSET, GET_DATAOBS_SERVICE_FAILED, DATAOBS_PROXY_INNER_ERR, DATA_OBSERVER_IS_NULL, DATAOBS_SERVICE_HANDLER_IS_NULL, DATAOBS_SERVICE_INNER_IS_NULL, DATAOBS_SERVICE_TASK_LIMMIT, DATAOBS_SERVICE_OBS_LIMMIT, DATAOBS_SERVICE_POST_TASK_FAILED, NO_OBS_FOR_URI, OBS_EXIST, }; } // namespace AAFwk } // namespace OHOS #endif // OHOS_AAFWK_DATAOBS_MANAGER_ERRORS_H