• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3# Copyright (c) 2021 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.
15
16
17class CircularDependencyError(Exception):
18    pass
19
20
21class CrossProcessCircularDependencyError(Exception):
22    pass
23
24
25class InvertDependencyError(Exception):
26    pass
27
28
29class RunOnCreateDependencyError(Exception):
30    pass
31
32
33class NotSupportedBootphaseError(Exception):
34    pass
35
36
37class SystemAbilityNameConflictError(Exception):
38    pass
39
40
41class BadFormatXMLError(Exception):
42    def __init__(self, message, file_in_process):
43        super().__init__(message, file_in_process)
44        self.message = message
45        self.file_in_process = file_in_process
46
47    def __str__(self):
48        return "In xml file: {}, {}".format(self.file_in_process, self.message)
49