HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.6/site-packages/jmespath/__pycache__/exceptions.cpython-36.opt-1.pyc
3

f�V �@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� /usr/lib/python3.6/exceptions.pyrsrcs,eZdZdZef�fdd�	Zdd�Z�ZS)�
ParseErrorzInvalid jmespath expressioncs:tt|�j|||�||_||_|j�|_||_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|�j|||�||_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)rZexpected�actual�namerrrrCszArityError.__init__cCs d|j|jd|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)rZword�countrrrr(QszArityError._pluralizeN)rrrrrr(rrrrr!Asr!c@seZdZdd�ZdS)�VariadictArityErrorcCs d|j|jd|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-r.r/rrrreszJMESPathTypeError.__init__cCsd|j|j|j|jfS)NzQIn function %s(), invalid type for value: %s, expected one of: %s, received: "%s")r$r-r/r.)rrrrrlszJMESPathTypeError.__str__N)rrrrrrrrrr,csr,cseZdZ�fdd�Z�ZS)�EmptyExpressionErrorcstt|�jd�dS)Nz-Invalid JMESPath expression: cannot be empty.)r
r0r)r)rrrrts
zEmptyExpressionError.__init__)rrrrrrr)rrr0ssr0c@seZdZdS)�UnknownFunctionErrorN)rrrrrrrr1ysr1N)Zjmespath.compatr�
ValueErrorrr	rrr!r+r,r0r1rrrr�<module>s