Your IP : 18.226.52.26


Current Path : /usr/lib64/python3.6/site-packages/psutil/__pycache__/
Upload File :
Current File : //usr/lib64/python3.6/site-packages/psutil/__pycache__/_exceptions.cpython-36.pyc

3

��JZ��@sTGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�Zd
S)c@s&eZdZdZddd�Zdd�ZeZdS)	�ErrorzQBase exception class. All other psutil exceptions inherit
    from this one.
    �cCstj||�||_dS)N)�	Exception�__init__�msg)�selfr�r�#/usr/lib64/python3.6/_exceptions.pyrszError.__init__cCsd|jj|jf}|j�S)Nzpsutil.%s %s)�	__class__�__name__r�strip)r�retrrr�__repr__szError.__repr__N)r)r
�
__module__�__qualname__�__doc__rr
�__str__rrrrrs
rc@seZdZdZddd�ZdS)�
NoSuchProcesszXException raised when a process with a certain PID doesn't
    or no longer exists.
    NcCsXtj||�||_||_||_|dkrT|r@d|jt|j�f}n
d|j}d||_dS)Nz(pid=%s, name=%s)z(pid=%s)zprocess no longer exists )rr�pid�namer�repr)rrrr�detailsrrrrs
zNoSuchProcess.__init__)NN)r
rrrrrrrrrsrc@seZdZdZddd�ZdS)�
ZombieProcessa/Exception raised when querying a zombie process. This is
    raised on OSX, BSD and Solaris only, and not always: depending
    on the query the OS may be able to succeed anyway.
    On Linux all zombie processes are querable (hence this is never
    raised). Windows doesn't have zombie processes.
    NcCs~tj||�||_||_||_||_|dkrzd|g}|rN|jdt|j��|rb|jd|j�ddj|�}d||_dS)Nzpid=%szname=%szppid=%sz(%s)z, z'process still exists but it's a zombie )	rrr�ppidrr�appendr�join)rrrrr�argsrrrrr0s
zZombieProcess.__init__)NNN)r
rrrrrrrrr(src@seZdZdZddd�ZdS)�AccessDeniedz@Exception raised when permission to perform an action is denied.NcCsjtj||�||_||_||_|dkrf|dk	rJ|dk	rJd|t|�f|_n|dk	r`d|j|_nd|_dS)Nz(pid=%s, name=%s)z(pid=%s)r)rrrrrr)rrrrrrrrCszAccessDenied.__init__)NNN)r
rrrrrrrrr@src@seZdZdZddd�ZdS)�TimeoutExpiredzWRaised on Process.wait(timeout) if timeout expires and process
    is still alive.
    NcCsntj|d|�||_||_||_|dk	rN|dk	rN|jd|t|�f7_n|dk	rj|jd|j7_dS)Nztimeout after %s secondsz (pid=%s, name=%s)z	 (pid=%s))rr�secondsrrrr)rrrrrrrrVszTimeoutExpired.__init__)NN)r
rrrrrrrrrQsrN)rrrrrrrrrr�<module>s

?>