reuse.exceptions module

All exceptions owned by reuse. These exceptions all inherit ReuseError.

exception reuse.exceptions.ReuseError[source]

Bases: Exception

Base exception.

exception reuse.exceptions.SpdxIdentifierNotFoundError[source]

Bases: ReuseError

Could not find SPDX identifier for license file.

exception reuse.exceptions.GlobalLicensingParseError(*args: Any, source: str | None = None)[source]

Bases: ReuseError

An exception representing any kind of error that occurs when trying to parse a reuse.global_licensing.GlobalLicensing file.

exception reuse.exceptions.GlobalLicensingParseTypeError(*args: Any, source: str | None = None)[source]

Bases: GlobalLicensingParseError, TypeError

An exception representing a type error while trying to parse a reuse.global_licensing.GlobalLicensing file.

exception reuse.exceptions.GlobalLicensingParseValueError(*args: Any, source: str | None = None)[source]

Bases: GlobalLicensingParseError, ValueError

An exception representing a value error while trying to parse a reuse.global_licensing.GlobalLicensing file.

exception reuse.exceptions.GlobalLicensingConflictError[source]

Bases: ReuseError

There are two global licensing files in the project that are not compatible.

exception reuse.exceptions.MissingReuseInfoError[source]

Bases: ReuseError

Some REUSE information is missing from the result.

exception reuse.exceptions.CommentError[source]

Bases: ReuseError

An error occurred during an interaction with a comment.

exception reuse.exceptions.CommentCreateError[source]

Bases: Exception

An error occurred during the creation of a comment.

exception reuse.exceptions.CommentParseError[source]

Bases: Exception

An error occurred during the parsing of a comment.