:py:mod:`cyclonedx.contrib.license.exceptions`
==============================================

.. py:module:: cyclonedx.contrib.license.exceptions

.. autoapi-nested-parse::

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



Module Contents
---------------

.. py:exception:: FactoryException


   Bases: :py:obj:`cyclonedx.exception.CycloneDxException`

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

   .. py:class:: args



   .. py:method:: add_note()

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


   .. py:method:: with_traceback()

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



.. py:exception:: LicenseChoiceFactoryException


   Bases: :py:obj:`FactoryException`

   Base exception that covers all LicenseChoiceFactory exceptions.

   .. py:class:: args



   .. py:method:: add_note()

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


   .. py:method:: with_traceback()

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



.. py:exception:: InvalidSpdxLicenseException


   Bases: :py:obj:`LicenseChoiceFactoryException`

   Thrown when an invalid SPDX License is provided.

   .. py:class:: args



   .. py:method:: add_note()

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


   .. py:method:: with_traceback()

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



.. py:exception:: LicenseFactoryException


   Bases: :py:obj:`FactoryException`

   Base exception that covers all LicenseFactory exceptions.

   .. py:class:: args



   .. py:method:: add_note()

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


   .. py:method:: with_traceback()

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



.. py:exception:: InvalidLicenseExpressionException


   Bases: :py:obj:`LicenseFactoryException`

   Thrown when an invalid License expression is provided.

   .. py:class:: args



   .. py:method:: add_note()

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


   .. py:method:: with_traceback()

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



