1#!/usr/bin/env python 2# -*- coding: utf-8 -*- 3# Copyright (c) 2022 Huawei Device Co., Ltd. 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15class CircularDependencyError(Exception): 16 pass 17 18 19class CrossProcessCircularDependencyError(Exception): 20 pass 21 22 23class InvertDependencyError(Exception): 24 pass 25 26 27class RunOnCreateDependencyError(Exception): 28 pass 29 30 31class NotSupportedBootphaseError(Exception): 32 pass 33 34 35class SystemAbilityNameConflictError(Exception): 36 pass 37 38 39class BadFormatJsonError(Exception): 40 def __init__(self, message, file_in_process): 41 super().__init__(message, file_in_process) 42 self.message = message 43 self.file_in_process = file_in_process 44 45 def __str__(self): 46 return "In json file: {}, {}".format(self.file_in_process, self.message) 47