HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/jmespath/__pycache__/exceptions.cpython-37.pyc
B

�P�e �@s�ddlmZGdd�de�ZeGdd�de��ZeGdd�de��ZeGdd	�d	e��ZeGd
d�de��ZeGdd
�d
e��ZeGdd�de��Z	Gdd�de�Z
Gdd�de�ZdS)�)�with_str_methodc@seZdZdS)�
JMESPathErrorN)�__name__�
__module__�__qualname__�rr�D/opt/alt/python37/lib/python3.7/site-packages/jmespath/exceptions.pyrsrcs,eZdZdZef�fdd�	Zdd�Z�ZS)�
ParseErrorzInvalid jmespath expressioncs:tt|��|||�||_||_|��|_||_d|_dS)N)	�superr	�__init__�lex_position�token_value�upper�
token_type�msg�
expression)�selfrr
rr)�	__class__rrrs
zParseError.__init__cCs0d|jdd}d|j|j|j|j|j|fS)N� ��^zF%s: Parse error at column %s, token "%s" (%s), for expression:
"%s"
%s)rrr
rr)r�	underlinerrr�__str__szParseError.__str__)rrrZ_ERROR_MESSAGErr�
__classcell__rr)rrr	s	r	c@seZdZdd�Zdd�ZdS)�IncompleteExpressionErrorcCs ||_t|�|_d|_d|_dS)N)r�lenrrr
)rrrrr�set_expression!s
z(IncompleteExpressionError.set_expressioncCs d|jdd}d|j|fS)Nrrrz;Invalid jmespath expression: Incomplete expression:
"%s"
%s)rr)rrrrrr'sz!IncompleteExpressionError.__str__N)rrrrrrrrrrsrcs&eZdZd�fdd�	Zdd�Z�ZS)�
LexerErrorNcs0||_||_||_tt|��|||�||_dS)N)�lexer_position�lexer_value�messager
rrr)rrrr r)rrrr1szLexerError.__init__cCs d|jd}d|j|j|fS)Nrrz"Bad jmespath expression: %s:
%s
%s)rr r)rrrrrr;szLexerError.__str__)N)rrrrrrrr)rrr/s
rc@s$eZdZdd�Zdd�Zdd�ZdS)�
ArityErrorcCs||_||_||_d|_dS)N)�expected_arity�actual_arity�
function_namer)r�expected�actual�namerrrrCszArityError.__init__cCs d|j|�d|j�|j|jfS)Nz-Expected %s %s for function %s(), received %s�argument)r"�
_pluralizer$r#)rrrrrIs
zArityError.__str__cCs|dkr|S|dSdS)Nr�sr)r�word�countrrrr)QszArityError._pluralizeN)rrrrrr)rrrrr!Asr!c@seZdZdd�ZdS)�VariadictArityErrorcCs d|j|�d|j�|j|jfS)Nz6Expected at least %s %s for function %s(), received %sr()r"r)r$r#)rrrrrZs
zVariadictArityError.__str__N)rrrrrrrrr-Xsr-c@seZdZdd�Zdd�ZdS)�JMESPathTypeErrorcCs||_||_||_||_dS)N)r$�
current_value�actual_type�expected_types)rr$r/r0r1rrrreszJMESPathTypeError.__init__cCsd|j|j|j|jfS)NzQIn function %s(), invalid type for value: %s, expected one of: %s, received: "%s")r$r/r1r0)rrrrrlszJMESPathTypeError.__str__N)rrrrrrrrrr.csr.cseZdZ�fdd�Z�ZS)�EmptyExpressionErrorcstt|��d�dS)Nz-Invalid JMESPath expression: cannot be empty.)r
r2r)r)rrrrts
zEmptyExpressionError.__init__)rrrrrrr)rrr2ssr2c@seZdZdS)�UnknownFunctionErrorN)rrrrrrrr3ysr3N)Zjmespath.compatr�
ValueErrorrr	rrr!r-r.r2r3rrrr�<module>s