cyclonedx.contrib.license.exceptions

Exceptions relating to specific conditions that occur when factoring a model.

Module Contents

exception cyclonedx.contrib.license.exceptions.FactoryException

Bases: cyclonedx.exception.CycloneDxException

Base exception that covers all exceptions that may be thrown during model factoring.

class args
add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception cyclonedx.contrib.license.exceptions.LicenseChoiceFactoryException

Bases: FactoryException

Base exception that covers all LicenseChoiceFactory exceptions.

class args
add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception cyclonedx.contrib.license.exceptions.InvalidSpdxLicenseException

Bases: LicenseChoiceFactoryException

Thrown when an invalid SPDX License is provided.

class args
add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception cyclonedx.contrib.license.exceptions.LicenseFactoryException

Bases: FactoryException

Base exception that covers all LicenseFactory exceptions.

class args
add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception cyclonedx.contrib.license.exceptions.InvalidLicenseExpressionException

Bases: LicenseFactoryException

Thrown when an invalid License expression is provided.

class args
add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.