B wÏ1`Jã@sFddlZe d¡ZGdd„deƒZGdd„deƒZGdd„deƒZdS) éNz [\.\[\]]+c@seZdZdZdS)ÚJsonSchemaExceptionz7 Base exception of ``fastjsonschema`` library. N)Ú__name__Ú __module__Ú __qualname__Ú__doc__©rrú=/tmp/pip-unpacked-wheel-vlg95h98/fastjsonschema/exceptions.pyrsrcs:eZdZdZd ‡fdd„ Zedd„ƒZedd„ƒZ‡ZS) Ú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.propery[index]``), * ``path`` as an array in the data structure (e.g. ``['data', 'propery', '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. Ncs.tƒ |¡||_||_||_||_||_dS)N)ÚsuperÚ__init__ÚmessageÚvalueÚnameÚ definitionÚrule)Úselfr r rrr)Ú __class__rrr s  z!JsonSchemaValueException.__init__cCsdd„t |j¡DƒS)NcSsg|]}|dkr|‘qS)Úr)Ú.0Úitemrrrú 'sz1JsonSchemaValueException.path..)ÚSPLIT_REÚsplitr)rrrrÚpath%szJsonSchemaValueException.pathcCs|jr |jsdS|j |j¡S)N)rrÚget)rrrrÚrule_definition)s z(JsonSchemaValueException.rule_definition)NNNN) rrrrr ÚpropertyrrÚ __classcell__rr)rrr s r c@seZdZdZdS)ÚJsonSchemaDefinitionExceptionz? Exception raised by generator of validation function. N)rrrrrrrrr0sr)ÚreÚcompilerÚ ValueErrorrr rrrrrÚs #