:py:mod:`cyclonedx.exception.output`
====================================

.. py:module:: cyclonedx.exception.output

.. autoapi-nested-parse::

   Exceptions that are for specific error scenarios during the output of a Model to a SBOM.



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

.. py:exception:: BomGenerationErrorException


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

   Raised if there is an unknown error.

   .. 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:: FormatNotSupportedException


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

   Exception raised when attempting to output a BOM to a format not supported in the requested version.

   For example, JSON is not supported prior to 1.2.

   .. 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.



