
    ܖi                     ^   d Z ddlmZ  G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z G d de      Z G d de      Z	 G d de      Z
 G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d d e      Zy!)"zU
Exceptions relating to specific conditions that occur when modelling CycloneDX BOM.
   )CycloneDxExceptionc                       e Zd ZdZy)CycloneDxModelExceptionz]
    Base exception that covers all exceptions that may be thrown during model creation.
    N__name__
__module____qualname____doc__     ]/var/www/html/content-pipeline/venv/lib/python3.12/site-packages/cyclonedx/exception/model.pyr   r           	r   r   c                       e Zd Zy)InvalidValueExceptionN)r   r   r	   r   r   r   r   r   !   s    r   r   c                       e Zd ZdZy)InvalidLocaleTypeExceptionam  
    Raised when the supplied locale does not conform to ISO-639 specification.

    Good examples:
        - en
        - en-US
        - en-GB
        - fr
        - fr-CA

    The language code MUST be lowercase. If the country code is specified, the country code MUST be upper case.
    The language code and country code MUST be separated by a minus sign.
    Nr   r   r   r   r   r   %   s     	r   r   c                       e Zd ZdZy)(InvalidNistQuantumSecurityLevelExceptiona  
    Raised when an invalid value is provided for an NIST Quantum Security Level
    as defined at https://csrc.nist.gov/projects/post-quantum-cryptography/post-quantum-cryptography-standardization/
    evaluation-criteria/security-(evaluation-criteria).
    Nr   r   r   r   r   r   6   s    
 	r   r   c                       e Zd ZdZy)InvalidOmniBorIdExceptionz
    Raised when a supplied value for an OmniBOR ID does not meet the format requirements
    as defined at https://www.iana.org/assignments/uri-schemes/prov/gitoid.
    Nr   r   r   r   r   r   ?        	r   r   c                       e Zd ZdZy))InvalidRelatedCryptoMaterialSizeExceptionzQ
    Raised when the supplied size of a Related Crypto Material is negative.
    Nr   r   r   r   r   r   G   r   r   r   c                       e Zd ZdZy)InvalidSwhidExceptionz
    Raised when a supplied value for an Swhid does not meet the format requirements
    as defined at https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html.
    Nr   r   r   r   r   r   N   r   r   r   c                       e Zd ZdZy)InvalidUriExceptionzR
    Raised when a `str` is provided that needs to be a valid URI, but isn't.
    Nr   r   r   r   r   r   V   r   r   r   c                       e Zd ZdZy)$MutuallyExclusivePropertiesExceptionzA
    Raised when mutually exclusive properties are provided.
    Nr   r   r   r   r   r   ]   r   r   r   c                       e Zd ZdZy)NoPropertiesProvidedExceptionz
    Raised when attempting to construct a model class and providing NO values (where all properites are defined as
    Optional, but at least one is required).
    Nr   r   r   r   r!   r!   d   r   r   r!   c                       e Zd ZdZy)#UnknownComponentDependencyExceptionzw
    Exception raised when a dependency has been noted for a Component that is NOT a Component BomRef in this Bom.
    Nr   r   r   r   r#   r#   l   r   r   r#   c                       e Zd ZdZy)UnknownHashTypeExceptionzi
    Exception raised when we are unable to determine the type of hash from a composite hash string.
    Nr   r   r   r   r%   r%   s   r   r   r%   c                       e Zd ZdZy))LicenseExpressionAlongWithOthersExceptionz
    Exception raised when a LicenseExpression was detected along with other licenses.
    If a LicenseExpression exists, than it must stand alone.

    See https://github.com/CycloneDX/specification/pull/205
    Nr   r   r   r   r'   r'   z   s     	r   r'   c                       e Zd ZdZy)InvalidCreIdExceptionz
    Raised when a supplied value for an CRE ID does not meet the format requirements
    as defined at https://opencre.org/
    Nr   r   r   r   r)   r)      r   r   r)   c                       e Zd ZdZy)InvalidConfidenceExceptionz
    Raised when an invalid value is provided for a Confidence.
    The confidence of the evidence from 0 - 1, where 1 is 100% confidence.
    Nr   r   r   r   r+   r+      r   r   r+   N)r
    r   r   r   r   r   r   r   r   r   r   r!   r#   r%   r'   r)   r+   r   r   r   <module>r-      s   & !	0 		3 		!8 	"	/F 		 7 		0G 		3 		1 		+B 		$; 		*A 		6 		0G 		3 		!8 	r   