spdx_tools.spdx.parser.error

 1# SPDX-FileCopyrightText: 2022 spdx contributors
 2#
 3# SPDX-License-Identifier: Apache-2.0
 4from beartype.typing import List
 5
 6
 7class SPDXParsingError(Exception):
 8    messages: List[str]
 9
10    def __init__(self, messages: List[str]):
11        self.messages = messages
12
13    def get_messages(self):
14        return list(self.messages)
class SPDXParsingError(builtins.Exception):
 8class SPDXParsingError(Exception):
 9    messages: List[str]
10
11    def __init__(self, messages: List[str]):
12        self.messages = messages
13
14    def get_messages(self):
15        return list(self.messages)

Common base class for all non-exit exceptions.

SPDXParsingError(messages: list[str])
11    def __init__(self, messages: List[str]):
12        self.messages = messages
messages: list[str]
def get_messages(self):
14    def get_messages(self):
15        return list(self.messages)
Inherited Members
builtins.BaseException
with_traceback
add_note
args