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/salt/utils/__pycache__/error.cpython-310.pyc
o

�N�g��@s<dZddlZddlZddlZddd�Zdd�Zdd	d
�ZdS)
zE
Utilities to enable exception reraising across the master commands

�N�cCs`|pd}ttj|�rttj|�}ntt|�rtt|�}nd}ttj|�}|dur,||��||��)z�
    Raise an exception with __name__ from name, args from args
    If args is None Otherwise message from message    If name is empty then use "Exception"
    �	ExceptionZ
SaltExceptionN)�hasattr�salt�
exceptions�getattr�builtins)�name�args�message�ex�r
�D/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/error.py�raise_errors
rcCs*t|d�r|��}|S|��|jd�}|S)N�pack)rr
)rrZ__unicode__r
)�excZpacked_exceptionr
r
r�pack_exception s

�r�minioncCs4|duri}tjjj||dd�}|�t|�d�dS)z1
    Fire raw exception across the event bus
    NF)�opts�listenZ_salt_error)r�utils�eventZ	SaltEventZ
fire_eventr)rrZjob�noderr
r
r�fire_exception(sr)NNr)Nr)�__doc__rZsalt.exceptionsrZsalt.utils.eventrrrr
r
r
r�<module>s