# SPDX-FileCopyrightText: 2017 Free Software Foundation Europe e.V. <https://fsfe.org>## SPDX-License-Identifier: GPL-3.0-or-later"""All exceptions owned by :mod:`reuse`. These exceptions all inherit:class:`ReuseError`."""fromtypingimportAny,Optional
[docs]classSpdxIdentifierNotFoundError(ReuseError):"""Could not find SPDX identifier for license file."""
[docs]classGlobalLicensingParseError(ReuseError):"""An exception representing any kind of error that occurs when trying to parse a :class:`reuse.global_licensing.GlobalLicensing` file. """def__init__(self,*args:Any,source:Optional[str]=None):super().__init__(*args)self.source=source
[docs]classGlobalLicensingParseTypeError(GlobalLicensingParseError,TypeError):"""An exception representing a type error while trying to parse a :class:`reuse.global_licensing.GlobalLicensing` file. """
[docs]classGlobalLicensingParseValueError(GlobalLicensingParseError,ValueError):"""An exception representing a value error while trying to parse a :class:`reuse.global_licensing.GlobalLicensing` file. """
[docs]classGlobalLicensingConflictError(ReuseError):"""There are two global licensing files in the project that are not compatible. """
[docs]classMissingReuseInfoError(ReuseError):"""Some REUSE information is missing from the result."""
[docs]classCommentError(ReuseError):"""An error occurred during an interaction with a comment."""
[docs]classCommentCreateError(Exception):"""An error occurred during the creation of a comment."""
[docs]classCommentParseError(Exception):"""An error occurred during the parsing of a comment."""