reuse.exceptions module¶
All exceptions owned by reuse. These exceptions all inherit
ReuseError.
- exception reuse.exceptions.SpdxIdentifierNotFoundError[source]¶
Bases:
ReuseErrorCould not find SPDX identifier for license file.
- exception reuse.exceptions.GlobalLicensingParseError(*args: Any, source: str | None = None)[source]¶
Bases:
ReuseErrorAn exception representing any kind of error that occurs when trying to parse a
reuse.global_licensing.GlobalLicensingfile.
- exception reuse.exceptions.GlobalLicensingParseTypeError(*args: Any, source: str | None = None)[source]¶
Bases:
GlobalLicensingParseError,TypeErrorAn exception representing a type error while trying to parse a
reuse.global_licensing.GlobalLicensingfile.
- exception reuse.exceptions.GlobalLicensingParseValueError(*args: Any, source: str | None = None)[source]¶
Bases:
GlobalLicensingParseError,ValueErrorAn exception representing a value error while trying to parse a
reuse.global_licensing.GlobalLicensingfile.
- exception reuse.exceptions.GlobalLicensingConflictError[source]¶
Bases:
ReuseErrorThere are two global licensing files in the project that are not compatible.
- exception reuse.exceptions.MissingReuseInfoError[source]¶
Bases:
ReuseErrorSome REUSE information is missing from the result.
- exception reuse.exceptions.CommentError[source]¶
Bases:
ReuseErrorAn error occurred during an interaction with a comment.
- exception reuse.exceptions.CommentCreateError[source]¶
Bases:
CommentErrorAn error occurred during the creation of a comment.
- exception reuse.exceptions.CommentParseError[source]¶
Bases:
CommentErrorAn error occurred during the parsing of a comment.
- exception reuse.exceptions.CopyrightNoticeParseError[source]¶
Bases:
ReuseErrorError for parsing a
reuse.copyright.CopyrightNoticefrom a string.
- exception reuse.exceptions.YearRangeParseError[source]¶
Bases:
CopyrightNoticeParseErrorError for parsing a
reuse.copyright.YearRangefrom a string. Because a year range is typically a constituent part of a copyright notice, this error is a subclass ofCopyrightNoticeParseError.
- exception reuse.exceptions.NoEncodingModuleError[source]¶
Bases:
ReuseErrorNo module that can detect the encoding of a file is importable.