# cyclonedx.exception.serialization

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

## Exceptions

`CycloneDxSerializationException` | Base exception that covers all exceptions that may be thrown during model serializing/normalizing.
`CycloneDxDeserializationException` | Base exception that covers all exceptions that may be thrown during model deserializing/denormalizing.
`SerializationOfUnsupportedComponentTypeException` | Raised when attempting serializing/normalizing a `cyclonedx.model.component.Component`
`SerializationOfUnexpectedValueException` | Raised when attempting serializing/normalizing a type that is not expected there.

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

exception cyclonedx.exception.serialization.CycloneDxDeserializationException

  Bases: `cyclonedx.exception.CycloneDxException`

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

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

exception cyclonedx.exception.serialization.SerializationOfUnexpectedValueException

  Bases: `CycloneDxSerializationException`, `ValueError`

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