Coverage for lobster/tools/codebeamer/exceptions.py: 100%
3 statements
« prev ^ index » next coverage.py v7.10.7, created at 2026-09-22 04:43 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2026-09-22 04:43 +0000
1# LOBSTER - Lightweight Open BMW Software Traceability Evidence Report
2# Copyright (C) 2025 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
3#
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU Affero General Public License as
6# published by the Free Software Foundation, either version 3 of the
7# License, or (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful, but
10# WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12# Affero General Public License for more details.
13#
14# You should have received a copy of the GNU Affero General Public
15# License along with this program. If not, see
16# <https://www.gnu.org/licenses/>.
18class QueryException(Exception):
19 """This exception is raised when a query to the Codebeamer API fails."""
22class NotFileException(Exception):
23 """This exception is raised when a file is expected but the path does not point to
24 a file.
25 """
28class MismatchException(Exception):
29 """This exception is raised when there is a mismatch in the data retrieved from a
30 codebeamer api call.
31 For example, query page 7 has been requested, but the response data indicates
32 page 8.
33 """