
    IxhL                         d dl Z  e j        d          Z G d de          Z G d de          Z G d de          ZdS )	    Nz	[\.\[\]]+c                       e Zd ZdZdS )JsonSchemaExceptionz7
    Base exception of ``fastjsonschema`` library.
    N__name__
__module____qualname____doc__     r/var/www/html/what/lib/python3.11/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_exceptions.pyr   r                 r   r   c                   P     e Zd ZdZd fd	Zed             Zed             Z xZS )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.
    Nc                     t                                          |           || _        || _        || _        || _        || _        d S N)super__init__messagevaluename
definitionrule)selfr   r   r   r   r   	__class__s         r   r   z!JsonSchemaValueException.__init__   sB    !!!
	$			r   c                 T    d t                               | j                  D             S )Nc                     g | ]
}|d k    |S ) r
   ).0items     r   
<listcomp>z1JsonSchemaValueException.path.<locals>.<listcomp>'   s    IIIdbjjjjjr   )SPLIT_REsplitr   r   s    r   pathzJsonSchemaValueException.path%   s$    II	!:!:IIIIr   c                 `    | j         r| j        sd S | j                            | j                   S r   )r   r   getr#   s    r   rule_definitionz(JsonSchemaValueException.rule_definition)   s2    y 	 	4""49---r   )NNNN)	r   r   r   r	   r   propertyr$   r'   __classcell__)r   s   @r   r   r      s               J J XJ . . X. . . . .r   r   c                       e Zd ZdZdS )JsonSchemaDefinitionExceptionz?
    Exception raised by generator of validation function.
    Nr   r
   r   r   r+   r+   0   r   r   r+   )recompiler!   
ValueErrorr   r   r+   r
   r   r   <module>r/      s    				 2:l##    *    .  .  .  .  .2  .  .  .F    $7     r   