cyclonedx.exception.serialization

Exceptions relating to specific conditions that occur when (de)serializing/(de)normalizing CycloneDX BOM.

Module Contents

exception cyclonedx.exception.serialization.CycloneDxSerializationException

Bases: cyclonedx.exception.CycloneDxException

Base exception that covers all exceptions that may be thrown during model serializing/normalizing.

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.exception.serialization.CycloneDxDeserializationException

Bases: cyclonedx.exception.CycloneDxException

Base exception that covers all exceptions that may be thrown during model deserializing/denormalizing.

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.exception.serialization.SerializationOfUnsupportedComponentTypeException

Bases: CycloneDxSerializationException

Raised when attempting serializing/normalizing a cyclonedx.model.component.Component to a cyclonedx.schema.schema.BaseSchemaVersion which does not support that cyclonedx.model.component.ComponentType .

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.exception.serialization.SerializationOfUnexpectedValueException

Bases: CycloneDxSerializationException, ValueError

Raised when attempting serializing/normalizing a type that is not expected there.

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.