관리-도구
편집 파일: fastjsonschema_exceptions.cpython-312.pyc
� t��eL � �r � d dl Z e j d� Z G d� de� Z G d� de� Z G d� de� Zy) � Nz [\.\[\]]+c � � e Zd ZdZy)�JsonSchemaExceptionz7 Base exception of ``fastjsonschema`` library. N��__name__� __module__�__qualname__�__doc__� � ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_exceptions.pyr r � � �r r c �D � � e Zd ZdZd� fd� Zed� � Zed� � Z� xZS )�JsonSchemaValueExceptiona� Exception raised by validation function. Available properties: * ``message`` containing human-readable information what is wrong (e.g. ``data.property[index] must be smaller than or equal to 42``), * invalid ``value`` (e.g. ``60``), * ``name`` of a path in the data structure (e.g. ``data.property[index]``), * ``path`` as an array in the data structure (e.g. ``['data', 'property', 'index']``), * the whole ``definition`` which the ``value`` has to fulfil (e.g. ``{'type': 'number', 'maximum': 42}``), * ``rule`` which the ``value`` is breaking (e.g. ``maximum``) * and ``rule_definition`` (e.g. ``42``). .. versionchanged:: 2.14.0 Added all extra properties. c �j �� t �| � |� || _ || _ || _ || _ || _ y �N)�super�__init__�message�value�name� definition�rule)�selfr r r r r � __class__s �r r z!JsonSchemaValueException.__init__ s3 �� � ����!������ ��� �$����� r c �r � t j | j � D �cg c] }|dk7 s� |�� c}S c c}w )N� )�SPLIT_RE�splitr )r �items r �pathzJsonSchemaValueException.path% s) � �!)���� � �!:�I��d�b�j��I�I��Is � 4�4c �~ � | j r| j sy | j j | j � S r )r r �get)r s r �rule_definitionz(JsonSchemaValueException.rule_definition) s+ � ��y�y��������"�"�4�9�9�-�-r )NNNN) r r r r r �propertyr r# � __classcell__)r s @r r r s7 �� � �� �J� �J� �.� �.r r c � � e Zd ZdZy)�JsonSchemaDefinitionExceptionz? Exception raised by generator of validation function. Nr r r r r'