
    ~fL                     r    d dl Z  e j                  d      Z G d de      Z G d de      Z G d de      Zy)	    Nz	[\.\[\]]+c                       e Zd ZdZy)JsonSchemaExceptionz7
    Base exception of ``fastjsonschema`` library.
    N__name__
__module____qualname____doc__     T/var/www/cvtools/html/venv/lib/python3.12/site-packages/fastjsonschema/exceptions.pyr   r          r   r   c                   D     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.
    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 cg c]
  }|dk7  s	| c}S c c}w )N )SPLIT_REsplitr   )r   items     r   pathzJsonSchemaValueException.path%   s)    !)		!:IdbjIIIs   
44c                 ~    | j                   r| j                  sy | j                  j                  | j                         S r   )r   r   get)r   s    r   rule_definitionz(JsonSchemaValueException.rule_definition)   s+    yy""499--r   )NNNN)	r   r   r   r	   r   propertyr    r#   __classcell__)r   s   @r   r   r      s7     J J . .r   r   c                       e Zd ZdZy)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+      sA    	 2::l#*  .2  .F$7 r   