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: //opt/saltstack/salt/lib/python3.10/site-packages/jmespath/__pycache__/exceptions.cpython-310.pyc
o

�N�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@�eZdZdS)�
JMESPathErrorN��__name__�
__module__�__qualname__�r	r	�G/opt/saltstack/salt/lib/python3.10/site-packages/jmespath/exceptions.pyr�rcs,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__r	r
rs

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�rZ	underliner	r	r
�__str__s���zParseError.__str__)rrrZ_ERROR_MESSAGErr�
__classcell__r	r	rr
rs
�
rc@�eZdZdd�Zdd�ZdS)�IncompleteExpressionErrorcCs ||_t|�|_d|_d|_dSr
)r�lenrrr)rrr	r	r
�set_expression!s

z(IncompleteExpressionError.set_expressioncCs d|jdd}d|j|fS)Nrrrz;Invalid jmespath expression: Incomplete expression:
"%s"
%s)rrrr	r	r
r's
��z!IncompleteExpressionError.__str__N)rrrr"rr	r	r	r
r sr cs&eZdZd�fdd�	Zdd�Z�ZS)�
LexerErrorNcs0||_||_||_tt|��|||�||_dSr
)�lexer_position�lexer_value�messagerr#rr)rr$r%r&rrr	r
r1s�
zLexerError.__init__cCs d|jd}d|j|j|fS)Nrrz"Bad jmespath expression: %s:
%s
%s)r$r&rrr	r	r
r;s
�zLexerError.__str__r
)rrrrrrr	r	rr
r#/s
r#c@s$eZdZdd�Zdd�Zdd�ZdS)�
ArityErrorcCs||_||_||_d|_dSr
)�expected_arity�actual_arity�
function_namer)r�expected�actual�namer	r	r
rCs
zArityError.__init__cC� d|j|�d|j�|j|jfS)Nz-Expected %s %s for function %s(), received %s�argument�r(�
_pluralizer*r)�rr	r	r
rI���zArityError.__str__cCs|dkr|S|dS)Nr�sr	)r�word�countr	r	r
r1QszArityError._pluralizeN)rrrrrr1r	r	r	r
r'Asr'c@seZdZdd�ZdS)�VariadictArityErrorcCr.)Nz6Expected at least %s %s for function %s(), received %sr/r0r2r	r	r
rZr3zVariadictArityError.__str__N)rrrrr	r	r	r
r7Xsr7c@r)�JMESPathTypeErrorcCs||_||_||_||_dSr
)r*�
current_value�actual_type�expected_types)rr*r9r:r;r	r	r
res
zJMESPathTypeError.__init__cCsd|j|j|j|jfS)NzQIn function %s(), invalid type for value: %s, expected one of: %s, received: "%s")r*r9r;r:r2r	r	r
rls
��zJMESPathTypeError.__str__N)rrrrrr	r	r	r
r8csr8cseZdZ�fdd�Z�ZS)�EmptyExpressionErrorcstt|��d�dS)Nz-Invalid JMESPath expression: cannot be empty.)rr<rr2rr	r
rts
�zEmptyExpressionError.__init__)rrrrrr	r	rr
r<ssr<c@r)�UnknownFunctionErrorNrr	r	r	r
r=yrr=N)Zjmespath.compatr�
ValueErrorrrr r#r'r7r8r<r=r	r	r	r
�<module>s